From 4dcaad44db966a0e34593544b9d3ae45b6253b27 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Mon, 16 Jul 2012 22:07:26 -0700 Subject: [PATCH] action: fix uint64_t printf warning --- action.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.cc b/action.cc index adb31f8c..b5c72c02 100644 --- a/action.cc +++ b/action.cc @@ -1,4 +1,6 @@ #include +#define __STDC_FORMAT_MACROS +#include #include "model.h" #include "action.h" @@ -180,7 +182,7 @@ void ModelAction::print(void) const type_str = "unknown type"; } - printf("(%3d) Thread: %-2d Action: %-13s MO: %d Loc: %14p Value: %-8u", + printf("(%3d) Thread: %-2d Action: %-13s MO: %d Loc: %14p Value: %-12" PRIu64, seq_number, id_to_int(tid), type_str, order, location, value); if (reads_from) printf(" Rf: %d", reads_from->get_seq_number()); -- 2.34.1