aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/traceevent')
-rw-r--r--tools/lib/traceevent/event-parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index da06c33dcf41..ddee5a8cf135 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -3895,14 +3895,15 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event
3895 break; 3895 break;
3896 } 3896 }
3897 } 3897 }
3898 if (pevent->long_size == 8 && ls) { 3898 if (pevent->long_size == 8 && ls &&
3899 sizeof(long) != 8) {
3899 char *p; 3900 char *p;
3900 3901
3901 ls = 2; 3902 ls = 2;
3902 /* make %l into %ll */ 3903 /* make %l into %ll */
3903 p = strchr(format, 'l'); 3904 p = strchr(format, 'l');
3904 if (p) 3905 if (p)
3905 memmove(p, p+1, strlen(p)+1); 3906 memmove(p+1, p, strlen(p)+1);
3906 else if (strcmp(format, "%p") == 0) 3907 else if (strcmp(format, "%p") == 0)
3907 strcpy(format, "0x%llx"); 3908 strcpy(format, "0x%llx");
3908 } 3909 }