From 653b9a6f95d83575b1335e54ce99adca75a85452 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 8 Jan 2017 15:36:42 +0000 Subject: [PATCH] sg_io_v4: print usr_ptr field in a hexadecimal form As the nature of this field is pointer-like, print it in a hexadecimal form. * sg_io_v4.c (decode_request): Print usr_ptr field using ("%#" PRI__x64) format string. --- sg_io_v4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sg_io_v4.c b/sg_io_v4.c index f770f137..6e0bdefe 100644 --- a/sg_io_v4.c +++ b/sg_io_v4.c @@ -74,7 +74,7 @@ decode_request(struct tcb *const tcp, const kernel_ulong_t arg) tprintf(", timeout=%u", sg_io.timeout); tprints(", flags="); printflags(bsg_flags, sg_io.flags, "BSG_FLAG_???"); - tprintf(", usr_ptr=%" PRI__u64, sg_io.usr_ptr); + tprintf(", usr_ptr=%#" PRI__x64, sg_io.usr_ptr); tprintf(", dout[%u]=", sg_io.dout_xfer_len); if (sg_io.dout_iovec_count) tprint_iov_upto(tcp, sg_io.dout_iovec_count, sg_io.dout_xferp, -- 2.50.1