aboutsummaryrefslogtreecommitdiffstats
path: root/trace-local.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-02-03 12:22:45 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-02-03 12:24:42 -0500
commita0e84ac41863a6f98ea31fa7d7701b24c5288c4b (patch)
treee6a2c0d09a90ee9d666a96d50defa8a02368556b /trace-local.h
parent8abd334d53527c279ec17b481323782405b383d1 (diff)
trace-graph: Fix compile warning on stupid guint64 and printf formats
For some stupid reason glib defines guint64 inconsistantly on different platforms. Probably because the developers don't even test on more than one box. This patch adds u64 as unsigned long long and uses this to typecast the output for printf. Reported-by: Darren Hart <dvhltc@us.ibm.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-local.h')
-rw-r--r--trace-local.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/trace-local.h b/trace-local.h
index 9f49c24..03ef9ef 100644
--- a/trace-local.h
+++ b/trace-local.h
@@ -3,6 +3,9 @@
3 3
4#include "trace-cmd.h" 4#include "trace-cmd.h"
5 5
6/* fix stupid glib guint64 typecasts and printf formats */
7typedef unsigned long long u64;
8
6/* for local shared information with trace-cmd executable */ 9/* for local shared information with trace-cmd executable */
7 10
8void usage(char **argv); 11void usage(char **argv);