diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2009-12-22 23:32:11 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-12-22 23:32:11 -0500 |
commit | 616a84bd7e25f228a5d0380bbee6bae0ae1f5588 (patch) | |
tree | 655658509c923f292b3810d80e43eeceb2412e7d | |
parent | 560a8931616203db1ba0b0e267ca6cbd5649b3f8 (diff) | |
parent | 86ef53184de667e68163dfb5a88f77c9916557ad (diff) |
Merge branch 'trace-cmd' into trace-view
-rw-r--r-- | parse-events.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/parse-events.c b/parse-events.c index 0600973..9bbb401 100644 --- a/parse-events.c +++ b/parse-events.c | |||
@@ -270,7 +270,7 @@ static int func_map_init(struct pevent *pevent) | |||
270 | struct func_map *func_map; | 270 | struct func_map *func_map; |
271 | int i; | 271 | int i; |
272 | 272 | ||
273 | func_map = malloc_or_die(sizeof(*func_map) * pevent->func_count + 1); | 273 | func_map = malloc_or_die(sizeof(*func_map) * (pevent->func_count + 1)); |
274 | funclist = pevent->funclist; | 274 | funclist = pevent->funclist; |
275 | 275 | ||
276 | i = 0; | 276 | i = 0; |
@@ -420,7 +420,7 @@ static void printk_map_init(struct pevent *pevent) | |||
420 | struct printk_map *printk_map; | 420 | struct printk_map *printk_map; |
421 | int i; | 421 | int i; |
422 | 422 | ||
423 | printk_map = malloc_or_die(sizeof(*printk_map) * pevent->printk_count + 1); | 423 | printk_map = malloc_or_die(sizeof(*printk_map) * (pevent->printk_count + 1)); |
424 | 424 | ||
425 | printklist = pevent->printklist; | 425 | printklist = pevent->printklist; |
426 | 426 | ||
@@ -3067,6 +3067,17 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event | |||
3067 | break; | 3067 | break; |
3068 | } | 3068 | } |
3069 | } | 3069 | } |
3070 | if (pevent->long_size == 8 && ls) { | ||
3071 | char *p; | ||
3072 | |||
3073 | ls = 2; | ||
3074 | /* make %l into %ll */ | ||
3075 | p = strchr(format, 'l'); | ||
3076 | if (p) | ||
3077 | memmove(p+1, p, strlen(p)+1); | ||
3078 | else if (strcmp(format, "%p") == 0) | ||
3079 | strcpy(format, "0x%llx"); | ||
3080 | } | ||
3070 | switch (ls) { | 3081 | switch (ls) { |
3071 | case 0: | 3082 | case 0: |
3072 | trace_seq_printf(s, format, (int)val); | 3083 | trace_seq_printf(s, format, (int)val); |