]> granicus.if.org Git - strace/commitdiff
perf.c: print perf_event_attr.__reserved_1 using PRIx64 format
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 19 Dec 2016 16:11:55 +0000 (16:11 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 19 Dec 2016 19:58:16 +0000 (19:58 +0000)
* perf.c (print_perf_event_attr): Print __reserved_1 field
of perf_event_attr using PRIx64 format.

perf.c

diff --git a/perf.c b/perf.c
index 38cd921ae827ede89ffe80e1c8af4dbae7b8e41e..99b0489c39ca11ada4c3b81f93fa6e7e6dd6c66a 100644 (file)
--- a/perf.c
+++ b/perf.c
@@ -321,8 +321,8 @@ print_perf_event_attr(struct tcb *tcp, unsigned long addr)
         * are not aware about.
         */
        if (attr->__reserved_1)
-               tprintf(", __reserved_1=%#llx /* Bits 63..28 */",
-                       (unsigned long long) attr->__reserved_1);
+               tprintf(", __reserved_1=%#" PRIx64 " /* Bits 63..28 */",
+                       (uint64_t) attr->__reserved_1);
 
        if (attr->watermark)
                tprintf(", wakeup_watermark=%u", attr->wakeup_watermark);