Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312334
b: refs/heads/master
c: c5b35b7
h: refs/heads/master
v: v3
  • Loading branch information
Wolfgang Mauerer authored and Namhyung Kim committed Jul 4, 2012
1 parent 4e1ff50 commit 1acc26f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aaf05c725bed1c7a8c940d9215662c78bea05dfd
refs/heads/master: c5b35b731965d16fa8c966e288489857097e0b25
5 changes: 3 additions & 2 deletions trunk/tools/lib/traceevent/event-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -3895,14 +3895,15 @@ 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 &&
sizeof(long) != 8) {
char *p;

ls = 2;
/* make %l into %ll */
p = strchr(format, 'l');
if (p)
memmove(p, p+1, strlen(p)+1);
memmove(p+1, p, strlen(p)+1);
else if (strcmp(format, "%p") == 0)
strcpy(format, "0x%llx");
}
Expand Down

0 comments on commit 1acc26f

Please sign in to comment.