aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorKirill Smelkov <kirr@landau.phys.spbu.ru>2010-01-13 10:22:19 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-13 11:39:44 -0500
commit66aeb6d5cb701aedd508187e08612bfd1e108e2e (patch)
treeb584f223c7ac757e003ae1b385e725abcefa5b06 /tools/perf
parent0895cf0a823e03ea6d79736611e90186006c805e (diff)
perf top: Fix code typo in prompt_symbol()
sym_filter is what was (if ever) passed with -s option. What was typed by user, and what we were looking for, is in buf. Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <1263396139-4798-3-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 6822b44ca4f9..7a8a77ec2c9d 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -667,7 +667,7 @@ static void prompt_symbol(struct sym_entry **target, const char *msg)
667 } 667 }
668 668
669 if (!found) { 669 if (!found) {
670 fprintf(stderr, "Sorry, %s is not active.\n", sym_filter); 670 fprintf(stderr, "Sorry, %s is not active.\n", buf);
671 sleep(1); 671 sleep(1);
672 return; 672 return;
673 } else 673 } else