From 6b8d93075499f0db5d0bfb9386e9024a0bdf68cf Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Fri, 18 Jun 2021 10:12:00 +0100 Subject: fix print (#567) Signed-off-by: Thanos Makatos Reviewed-by: John Levon --- lib/libvfio-user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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); -- cgit v1.1