From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752226AbZLMSda (ORCPT ); Sun, 13 Dec 2009 13:33:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751563AbZLMSd3 (ORCPT ); Sun, 13 Dec 2009 13:33:29 -0500 Received: from mail.perches.com ([173.55.12.10]:1159 "HELO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751291AbZLMSd2 (ORCPT ); Sun, 13 Dec 2009 13:33:28 -0500 Subject: Re: [tip:tracing/urgent] ftrace.h: Use common pr_info fmt string From: Joe Perches To: Frederic Weisbecker Cc: Steven Rostedt , mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@elte.hu, linux-tip-commits@vger.kernel.org In-Reply-To: <20091213145056.GA5268@nowhere> References: <1260651974.2637.4.camel@Joe-Laptop.home> <1260715695.2146.412.camel@gandalf.stny.rr.com> <20091213145056.GA5268@nowhere> Content-Type: text/plain; charset="UTF-8" Date: Sun, 13 Dec 2009 10:33:27 -0800 Message-ID: <1260729207.8189.56.camel@Joe-Laptop.home> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2009-12-13 at 15:50 +0100, Frederic Weisbecker wrote: > On Sun, Dec 13, 2009 at 09:48:15AM -0500, Steven Rostedt wrote: > > > 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? > Yeah, I don't understand the purpose of this patch either... The patch from Li Zefan you've already queued is better http://lkml.org/lkml/2009/12/13/60 Subject: [PATCH 03/13] tracing: Move a printk out of ftrace_raw_reg_event_foo() Date: Sun, 13 Dec 2009 14:08:04 +0100 From: Li Zefan Move the printk from each ftrace_raw_reg_event_foo() to its caller ftrace_event_enable_disable(). This avoids each regfunc trace event callbacks to handle a same error report that can be carried from the caller.