Skip to content

Commit

Permalink
perf top: Fix code typo in prompt_symbol()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kirill Smelkov authored and Ingo Molnar committed Jan 13, 2010
1 parent 0895cf0 commit 66aeb6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/builtin-top.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66aeb6d

Please sign in to comment.