[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1318107227.1844.25.camel@Joe-Laptop>
Date: Sat, 08 Oct 2011 13:53:47 -0700
From: Joe Perches <joe@...ches.com>
To: Bart Van Assche <bvanassche@....org>
Cc: Jim Cromie <jim.cromie@...il.com>, jbaron@...hat.com,
greg@...ah.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 25/26] dynamic_debug: add pr_fmt_dbg() for
dynamic_pr_debug
On Sat, 2011-10-08 at 21:07 +0200, Bart Van Assche wrote:
> On Wed, Sep 28, 2011 at 6:51 AM, Joe Perches <joe@...ches.com> wrote:
> > I think all of the '#define pr_fmt(fmt) KBUILD_MODNAME ": "'
> > are effectivly useless and I will eventually delete them.
> >
> > The printk subsystem should look up the module name and
> > prefix them to the printk akin to how the dynamic_debug
> > system does. Except the module name should be a singleton.
>
> Shouldn't pr_*() equivalents be introduced for sdev_printk(),
> scmd_printk(), starget_printk() and shost_printk() before elimination
> of pr_fmt() can start ?
I don't think that's necessary.
Is there a reason you might think there is?
I don't think there's anything wrong with
<subsystem>_printk uses. Those subsystems
don't have to use pr_fmt and can prefix
whatever is appropriate.
The scsi logging substem uses sdev_printk,
scmd_printk, starget_printk, and shost _printk.
All of these are mapped to dev_printk and so
don't use pr_fmt.
I did send a patch a few months ago
https://lkml.org/lkml/2011/7/9/14
to reduce text use by some of those.
--
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