diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2012-04-08 22:54:29 -0400 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2012-07-04 00:40:30 -0400 |
commit | 0fc45ef5202a34b5862ca246740e6ab50bc3e3e1 (patch) | |
tree | 94c38ab9536a3eb6d6dd8e03547a43ecea36f7af /tools/lib | |
parent | c5b35b731965d16fa8c966e288489857097e0b25 (diff) |
tools lib traceevent: Fix printk_cmp()
The printk_cmp function should use printk_map instead of func_map.
Also rename the variables for consistency.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: David Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/r/1333940074-19052-3-git-send-email-namhyung.kim@lge.com
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index ddee5a8cf135..7815b8d2eabd 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
@@ -511,12 +511,12 @@ struct printk_list { | |||
511 | 511 | ||
512 | static int printk_cmp(const void *a, const void *b) | 512 | static int printk_cmp(const void *a, const void *b) |
513 | { | 513 | { |
514 | const struct func_map *fa = a; | 514 | const struct printk_map *pa = a; |
515 | const struct func_map *fb = b; | 515 | const struct printk_map *pb = b; |
516 | 516 | ||
517 | if (fa->addr < fb->addr) | 517 | if (pa->addr < pb->addr) |
518 | return -1; | 518 | return -1; |
519 | if (fa->addr > fb->addr) | 519 | if (pa->addr > pb->addr) |
520 | return 1; | 520 | return 1; |
521 | 521 | ||
522 | return 0; | 522 | return 0; |