aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2015-11-16 15:22:45 -0500
committerSteven Rostedt <rostedt@goodmis.org>2015-11-16 15:22:45 -0500
commit5612d10bf8c35a9fa16f85cbb980efb5d9b1e12d (patch)
tree51174765e12bf82cd682ed570d2384158da04077
parent300df7084f8f25c5033b0d92baf578fd4f51f668 (diff)
downloadtrace-cmd-5612d10bf8c35a9fa16f85cbb980efb5d9b1e12d.tar.gz
parse-events: Fix output of %llu for 64 bit values read on 32 bit machines
When a long value is read on 32 bit machines for 64 bit output, the parsing needs to change "%lu" into "%llu", as the value is read natively. Unfortunately, if "%llu" is already there, the code will add another "l" to it and fail to parse it properly. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--event-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event-parse.c b/event-parse.c
index 0a30253e..24373d4f 100644
--- a/event-parse.c
+++ b/event-parse.c
@@ -4824,7 +4824,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event
break;
}
}
- if (pevent->long_size == 8 && ls &&
+ if (pevent->long_size == 8 && ls == 1 &&
sizeof(long) != 8) {
char *p;