public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: tip-bot for Kirill Smelkov <kirr@landau.phys.spbu.ru>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, acme@redhat.com, hpa@zytor.com,
	mingo@redhat.com, kirr@landau.phys.spbu.ru, tglx@linutronix.de,
	mingo@elte.hu
Subject: [tip:perf/core] perf top: Fix code typo in prompt_symbol()
Date: Wed, 13 Jan 2010 16:43:03 GMT	[thread overview]
Message-ID: <tip-66aeb6d5cb701aedd508187e08612bfd1e108e2e@git.kernel.org> (raw)
In-Reply-To: <1263396139-4798-3-git-send-email-acme@infradead.org>

Commit-ID:  66aeb6d5cb701aedd508187e08612bfd1e108e2e
Gitweb:     http://git.kernel.org/tip/66aeb6d5cb701aedd508187e08612bfd1e108e2e
Author:     Kirill Smelkov <kirr@landau.phys.spbu.ru>
AuthorDate: Wed, 13 Jan 2010 13:22:19 -0200
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Wed, 13 Jan 2010 17:39:44 +0100

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>
---
 tools/perf/builtin-top.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 6822b44..7a8a77e 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

      reply	other threads:[~2010-01-13 16:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13 15:22 [PATCH 1/3 v2] perf tools: Encode kernel module mappings in perf.data Arnaldo Carvalho de Melo
2010-01-13 15:22 ` [PATCH 2/3] perf: fix few typos + cosmetics Arnaldo Carvalho de Melo
2010-01-13 16:42   ` [tip:perf/core] perf: Fix " tip-bot for Kirill Smelkov
2010-01-13 15:22 ` [PATCH 3/3] perf top: fix code typo in prompt_symbol() Arnaldo Carvalho de Melo
2010-01-13 16:43   ` tip-bot for Kirill Smelkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tip-66aeb6d5cb701aedd508187e08612bfd1e108e2e@git.kernel.org \
    --to=kirr@landau.phys.spbu.ru \
    --cc=acme@redhat.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox