[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091213145056.GA5268@nowhere>
Date: Sun, 13 Dec 2009 15:50:58 +0100
From: Frederic Weisbecker <fweisbec@...il.com>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: mingo@...hat.com, hpa@...or.com, linux-kernel@...r.kernel.org,
joe@...ches.com, tglx@...utronix.de, mingo@...e.hu,
linux-tip-commits@...r.kernel.org
Subject: Re: [tip:tracing/urgent] ftrace.h: Use common pr_info fmt string
On Sun, Dec 13, 2009 at 09:48:15AM -0500, Steven Rostedt wrote:
> On Sun, 2009-12-13 at 07:37 +0000, tip-bot for Joe Perches wrote:
> > Commit-ID: 4819568f23a8bef0ca99b740ca60fe2450ab0aac
> > Gitweb: http://git.kernel.org/tip/4819568f23a8bef0ca99b740ca60fe2450ab0aac
> > Author: Joe Perches <joe@...ches.com>
> > AuthorDate: Sat, 12 Dec 2009 13:06:13 -0800
> > Committer: Ingo Molnar <mingo@...e.hu>
> > CommitDate: Sun, 13 Dec 2009 08:14:45 +0100
> >
> > ftrace.h: Use common pr_info fmt string
> >
> > Reduces fmt string space a bit.
> >
> > Signed-off-by: Joe Perches <joe@...ches.com>
> > Cc: Frederic Weisbecker <fweisbec@...il.com>
> > Cc: Steven Rostedt <rostedt@...dmis.org>
> > LKML-Reference: <1260651974.2637.4.camel@...-Laptop.home>
> > Signed-off-by: Ingo Molnar <mingo@...e.hu>
> > ---
> > include/trace/ftrace.h | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
> > index d1b3de9..c4eca38 100644
> > --- a/include/trace/ftrace.h
> > +++ b/include/trace/ftrace.h
> > @@ -733,7 +733,7 @@ static int ftrace_raw_reg_event_##call(struct ftrace_event_call *unused)\
> > ret = register_trace_##call(ftrace_raw_event_##call); \
> > if (ret) \
> > pr_info("event trace: Could not activate trace point " \
> > - "probe to " #call "\n"); \
> > + "probe to %s\n", #call); \
>
> This reduces format string space a bit, but doesn't it just add another
> string to the string tables #func == "func" as well as add code to pass
> in another parameter?
>
> -- Steve
Yeah, I don't understand the purpose of this patch either...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists