From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752318Ab1GGTos (ORCPT ); Thu, 7 Jul 2011 15:44:48 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:42582 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790Ab1GGTor convert rfc822-to-8bit (ORCPT ); Thu, 7 Jul 2011 15:44:47 -0400 MIME-Version: 1.0 In-Reply-To: References: <151c1f3fc402d2f19f95e44de07cdc04917f7278.1309967232.git.root@dhcp-100-18-164.bos.redhat.com> From: Jim Cromie Date: Thu, 7 Jul 2011 13:44:17 -0600 Message-ID: Subject: Re: [PATCH 02/10] dynamic_debug: Consolidate prefix output to single routine To: Bart Van Assche Cc: Jason Baron , gregkh@suse.de, joe@perches.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 7, 2011 at 12:14 PM, Bart Van Assche wrote: > On Wed, Jul 6, 2011 at 7:24 PM, Jason Baron wrote: >> >> From: Joe Perches >> >> Adding dynamic_dev_dbg duplicated prefix output. >> Consolidate that output to a single routine. >> >> Signed-off-by: Joe Perches >> Signed-off-by: Jason Baron >> --- >>  lib/dynamic_debug.c |   38 ++++++++++++++++++-------------------- >>  1 files changed, 18 insertions(+), 20 deletions(-) >> >> diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c >> index 5c5f8f9..758e922 100644 >> --- a/lib/dynamic_debug.c >> +++ b/lib/dynamic_debug.c >> @@ -428,15 +428,10 @@ static int ddebug_exec_query(char *query_string) >>        return 0; >>  } >> >> -int __dynamic_pr_debug(struct _ddebug *descriptor, const char *fmt, ...) >> +static int dynamic_emit_prefix(const struct _ddebug *descriptor) >>  { > > How about renaming dynamic_emit_prefix() into ddebug_emit_prefix() ? > Personally I prefer the latter name over the former. > > Bart. > WRT naming, Id like dyndbg, esp as exposed on kernel cmdline, parameters.. dyndbg.query=.... dyndbg.verbose=1 /sys/modules/dyndbg/parameters/verbose does this run up against ABI issues ?