From: Kirill Smelkov Date: Wed, 13 Jan 2010 15:22:19 +0000 (-0200) Subject: perf top: Fix code typo in prompt_symbol() X-Git-Tag: v2.6.34-rc1~197^2~132 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=66aeb6d5cb701aedd508187e08612bfd1e108e2e;p=~emulex%2Finfiniband.git 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 Signed-off-by: Arnaldo Carvalho de Melo LKML-Reference: <1263396139-4798-3-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar --- diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 6822b44ca4f..7a8a77ec2c9 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) } if (!found) { - fprintf(stderr, "Sorry, %s is not active.\n", sym_filter); + fprintf(stderr, "Sorry, %s is not active.\n", buf); sleep(1); return; } else