summaryrefslogtreecommitdiff
path: root/perf.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2016-12-19 16:11:55 +0000
committerDmitry V. Levin <ldv@altlinux.org>2016-12-19 19:58:16 +0000
commitdf5c46896b532535d47fc0fa4f7eec113c6b04c6 (patch)
treeea9c9574c9c3ae636d3b912204d1b631b118a551 /perf.c
parentcabcca717adc88d778a1b00636b4354d7b00f4a1 (diff)
downloadstrace-df5c46896b532535d47fc0fa4f7eec113c6b04c6.tar.gz
perf.c: print perf_event_attr.__reserved_1 using PRIx64 format
* perf.c (print_perf_event_attr): Print __reserved_1 field of perf_event_attr using PRIx64 format.
Diffstat (limited to 'perf.c')
-rw-r--r--perf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perf.c b/perf.c
index 38cd921ae..99b0489c3 100644
--- 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);