diff options
author | Swapnil Ingle <swapnil.ingle@nutanix.com> | 2020-09-30 09:59:27 -0400 |
---|---|---|
committer | Swapnil Ingle <swapnil.ingle@nutanix.com> | 2020-09-30 09:59:27 -0400 |
commit | f9bd70e6eb343ce0e268864704dbe3db2e9515bc (patch) | |
tree | 5ad2750d06b657381bfd70bec6320b2e3faff103 /samples/client.c | |
parent | d1ab77f44121c4b50be2104558b9d064f74ea0c6 (diff) | |
download | libvfio-user-f9bd70e6eb343ce0e268864704dbe3db2e9515bc.zip libvfio-user-f9bd70e6eb343ce0e268864704dbe3db2e9515bc.tar.gz libvfio-user-f9bd70e6eb343ce0e268864704dbe3db2e9515bc.tar.bz2 |
client: better output messages
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'samples/client.c')
-rw-r--r-- | samples/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/client.c b/samples/client.c index 5e3a9ce..f916e4c 100644 --- a/samples/client.c +++ b/samples/client.c @@ -132,7 +132,7 @@ get_device_region_info(int sock, struct vfio_device_info *client_dev_info) } cap_sz = region_info.argsz - sizeof(struct vfio_region_info); - fprintf(stdout, "%s: region_info[%d] offset %lu flags %#x size %llu " + fprintf(stdout, "%s: region_info[%d] offset %#lx flags %#x size %llu " "cap_sz %d\n", __func__, i, region_info.offset, region_info.flags, region_info.size, cap_sz); if (cap_sz) { @@ -154,8 +154,8 @@ get_device_region_info(int sock, struct vfio_device_info *client_dev_info) fprintf(stdout, "%s: Sparse cap nr_mmap_areas %d\n", __func__, sparse->nr_areas); for (j = 0; j < sparse->nr_areas; j++) { - fprintf(stdout, "%s: nr %d offset %lu size\n", __func__, - sparse->areas[i].offset, sparse->areas[i].size); + fprintf(stdout, "%s: area %d offset %#lx size %llu\n", __func__, + j, sparse->areas[j].offset, sparse->areas[j].size); } free(sparse); } |