aboutsummaryrefslogtreecommitdiff
path: root/kmod
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-02-13 09:02:21 -0500
committerThanos <tmakatos@gmail.com>2020-02-25 16:21:59 +0000
commit2f410a723fa54a67fa11a095a959042e917518d5 (patch)
treed72c95fef214c864c2046e7dc1e09669c54e4116 /kmod
parent6b8f4a3833e5376ae24e3a5dd1c3d89b2d64be37 (diff)
downloadlibvfio-user-2f410a723fa54a67fa11a095a959042e917518d5.zip
libvfio-user-2f410a723fa54a67fa11a095a959042e917518d5.tar.gz
libvfio-user-2f410a723fa54a67fa11a095a959042e917518d5.tar.bz2
improve readability of messages about memory ranges
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'kmod')
-rw-r--r--kmod/muser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kmod/muser.c b/kmod/muser.c
index af1127b..118e9d5 100644
--- a/kmod/muser.c
+++ b/kmod/muser.c
@@ -1279,9 +1279,9 @@ static int muser_mmap(struct mdev_device *const mdev,
err = mucmd.muser_cmd.err;
}
if (unlikely(err != 0)) {
- muser_info("failed to mmap %#lx@%#lx: %d",
- mucmd.muser_cmd.mmap.request.len,
+ muser_info("failed to mmap %#lx-%#lx: %d",
mucmd.muser_cmd.mmap.request.addr,
+ mucmd.muser_cmd.mmap.request.addr + mucmd.muser_cmd.mmap.request.len,
err);
return err;
}