aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Franciosi <felipe@nutanix.com>2019-10-03 17:55:14 +0100
committerFelipe Franciosi <felipe@nutanix.com>2019-10-03 17:55:14 +0100
commitf157954329b1a4d2fa3eb725377396f5f7d4facd (patch)
tree5e8d66a4c7ca37402be9f67cd5a5c9f3bafea55d
parent203d8e99852db1d30840c940ead1f23f3b6985dd (diff)
downloadlibvfio-user-f157954329b1a4d2fa3eb725377396f5f7d4facd.zip
libvfio-user-f157954329b1a4d2fa3eb725377396f5f7d4facd.tar.gz
libvfio-user-f157954329b1a4d2fa3eb725377396f5f7d4facd.tar.bz2
samples: make test_read slightly more verbose
This helped in debugging the recent config breakage.
-rw-r--r--samples/test_read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/test_read.c b/samples/test_read.c
index 872afac..fb19c2e 100644
--- a/samples/test_read.c
+++ b/samples/test_read.c
@@ -61,8 +61,9 @@ test_read(int vfio_dev_fd, off_t offset)
int i;
memset(buf, 0, sizeof(buf));
- printf("* Reading %zd bytes\n", sizeof(buf));
+ printf("* Reading %zd bytes at %#zx\n", sizeof(buf), offset);
bytes = pread(vfio_dev_fd, buf, sizeof(buf), offset);
+ printf("** bytes = %zd\n", bytes);
assert(bytes == sizeof(buf));
printf("** Read %zd bytes\n", bytes);