diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2019-09-20 09:09:13 -0400 |
---|---|---|
committer | Thanos <tmakatos@gmail.com> | 2019-09-27 15:59:11 +0100 |
commit | d3689b70f3ef793a23adf0191455b2ef82e63bf8 (patch) | |
tree | 332df237a26baa70b0db0b768217f3392424d395 | |
parent | ea44111861ac603438990eef73c74b3f80aeface (diff) | |
download | libvfio-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>
-rw-r--r-- | lib/libmuser.c | 2 |
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; |