aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-01-07 17:56:06 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-01-07 17:56:06 -0500
commite0a752eb3f78c4fd50cbb25236d0601e786b8623 (patch)
treee744dc761d89db93d2f69f6f055761c17487e407
parent6dd3921952f022c41713ec02e4d6bd0b04109af8 (diff)
trace-cmd: Fix memmove to handle 64bit %llu
When 64 bit needs to process %llu, it needs to convert it first to %lu and use a long. But the code to do this had a bug in the memmove, where the sorce and dest were reversed. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--parse-events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-events.c b/parse-events.c
index 406b28f..309986d 100644
--- a/parse-events.c
+++ b/parse-events.c
@@ -3173,7 +3173,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event
3173 /* make %l into %ll */ 3173 /* make %l into %ll */
3174 p = strchr(format, 'l'); 3174 p = strchr(format, 'l');
3175 if (p) 3175 if (p)
3176 memmove(p+1, p, strlen(p)+1); 3176 memmove(p, p+1, strlen(p)+1);
3177 else if (strcmp(format, "%p") == 0) 3177 else if (strcmp(format, "%p") == 0)
3178 strcpy(format, "0x%llx"); 3178 strcpy(format, "0x%llx");
3179 } 3179 }