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.
This commit is contained in:
Дмитрий Левин 2016-12-19 16:11:55 +00:00
parent cabcca717a
commit df5c46896b

4
perf.c
View File

@ -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);