diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-11-02 13:25:25 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-02 13:34:27 -0500 |
commit | 900b20d5900045fb9b48f2fb3d80cbdbae3f44c0 (patch) | |
tree | a1263a83849b91db7ea4ecddaf22b3f868fcde21 /tools/perf/util/map.c | |
parent | d70a5402f9c2e2671b809363616b3508b4c5a565 (diff) |
perf tools: Fix missing symtabs printouts
Fix:
util/map.c: In function ‘map__find_symbol’:
util/map.c:97: error: field precision should have type ‘int’, but argument 3 has type ‘size_t’
Also clean up some line wrap damage - we dont line-wrap printk
messages.
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <1256927305-4628-3-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/map.c')
-rw-r--r-- | tools/perf/util/map.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c index f1e216955420..33f868420d73 100644 --- a/tools/perf/util/map.c +++ b/tools/perf/util/map.c | |||
@@ -93,13 +93,12 @@ map__find_symbol(struct map *self, u64 ip, symbol_filter_t filter) | |||
93 | const size_t real_len = len - sizeof(DSO__DELETED); | 93 | const size_t real_len = len - sizeof(DSO__DELETED); |
94 | 94 | ||
95 | if (len > sizeof(DSO__DELETED) && | 95 | if (len > sizeof(DSO__DELETED) && |
96 | strcmp(name + real_len + 1, DSO__DELETED) == 0) | 96 | strcmp(name + real_len + 1, DSO__DELETED) == 0) { |
97 | pr_warning("%.*s was updated, restart the " | 97 | pr_warning("%.*s was updated, restart the long running apps that use it!\n", |
98 | "long running apps that use it!\n", | 98 | (int)real_len, name); |
99 | real_len, name); | 99 | } else { |
100 | else | 100 | pr_warning("no symbols found in %s, maybe install a debug package?\n", name); |
101 | pr_warning("no symbols found in %s, maybe " | 101 | } |
102 | "install a debug package?\n", name); | ||
103 | return NULL; | 102 | return NULL; |
104 | } | 103 | } |
105 | } | 104 | } |