diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2021-06-18 10:12:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 10:12:00 +0100 |
commit | 6b8d93075499f0db5d0bfb9386e9024a0bdf68cf (patch) | |
tree | feb3247607e173aad2e38055560ebb9eca6e2909 /lib/libvfio-user.c | |
parent | 3fe0df4843508ffc3517e82e9256c0e2d02932bd (diff) | |
download | libvfio-user-6b8d93075499f0db5d0bfb9386e9024a0bdf68cf.zip libvfio-user-6b8d93075499f0db5d0bfb9386e9024a0bdf68cf.tar.gz libvfio-user-6b8d93075499f0db5d0bfb9386e9024a0bdf68cf.tar.bz2 |
fix print (#567)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'lib/libvfio-user.c')
-rw-r--r-- | lib/libvfio-user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libvfio-user.c b/lib/libvfio-user.c index bbef62a..0762c24 100644 --- a/lib/libvfio-user.c +++ b/lib/libvfio-user.c @@ -334,9 +334,9 @@ handle_region_access(vfu_ctx_t *vfu_ctx, vfu_msg_t *msg) in_ra->offset, msg->hdr.cmd == VFIO_USER_REGION_WRITE); if (ret != in_ra->count) { - vfu_log(vfu_ctx, LOG_ERR, "failed to %s %#x-%#lx: %m", + vfu_log(vfu_ctx, LOG_ERR, "failed to %s %#lx-%#lx: %m", msg->hdr.cmd == VFIO_USER_REGION_WRITE ? "write" : "read", - in_ra->count, in_ra->offset + in_ra->count - 1); + in_ra->offset, in_ra->offset + in_ra->count - 1); /* FIXME we should return whatever has been accessed, not an error */ if (ret >= 0) { ret = ERROR_INT(EINVAL); |