perf top: Fix code typo in prompt_symbol()
authorKirill Smelkov <kirr@landau.phys.spbu.ru>
Wed, 13 Jan 2010 15:22:19 +0000 (13:22 -0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 13 Jan 2010 16:39:44 +0000 (17:39 +0100)
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>
tools/perf/builtin-top.c

index 6822b44ca4f96548d33aa4ccea52d61f752d6dff..7a8a77ec2c9d86c8ffbaf79ac93ffbe8431877d5 100644 (file)
@@ -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