aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2019-09-20 09:09:13 -0400
committerThanos <tmakatos@gmail.com>2019-09-27 15:59:11 +0100
commitd3689b70f3ef793a23adf0191455b2ef82e63bf8 (patch)
tree332df237a26baa70b0db0b768217f3392424d395 /lib
parentea44111861ac603438990eef73c74b3f80aeface (diff)
downloadlibvfio-user-d3689b70f3ef793a23adf0191455b2ef82e63bf8.zip
libvfio-user-d3689b70f3ef793a23adf0191455b2ef82e63bf8.tar.gz
libvfio-user-d3689b70f3ef793a23adf0191455b2ef82e63bf8.tar.bz2
print offset of bad access to capabilities using hex
All other prints for offset use hex, so let's make it consistent. Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libmuser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libmuser.c b/lib/libmuser.c
index 800c0d3..8299840 100644
--- a/lib/libmuser.c
+++ b/lib/libmuser.c
@@ -672,7 +672,7 @@ handle_pci_config_space_access(lm_ctx_t *lm_ctx, char *buf, size_t count,
r1 = cap_maybe_access(lm_ctx->caps, lm_ctx->pvt, buf, count, pos, is_write);
if (r1 < 0) {
- lm_log(lm_ctx, LM_ERR, "bad access to capabilities %u@%ld\n", count, pos);
+ lm_log(lm_ctx, LM_ERR, "bad access to capabilities %u@0x%x\n", count, pos);
return r1;
}
buf += r1;