[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ff833cf6a9a489ff446910c85e2a56ff1c11ccb4.camel@perches.com>
Date: Mon, 02 Mar 2020 11:39:53 -0800
From: Joe Perches <joe@...ches.com>
To: Helge Deller <deller@....de>, Randy Dunlap <rdunlap@...radead.org>,
"James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
Sudip Mukherjee <sudipm.mukherjee@...il.com>
Cc: linux-parisc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/7] parport: Use more comon logging styles
On Mon, 2020-03-02 at 20:29 +0100, Helge Deller wrote:
> On 28.02.20 09:32, Joe Perches wrote:
> > Some of the logging can be poorly formatted because of unexpected
> > line breaks given printks without KERN_CONT that should be pr_cont.
[]
> > diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c
[]
> > @@ -238,14 +238,14 @@ struct parport *parport_gsc_probe_port(unsigned long base,
> >
> > priv = kzalloc (sizeof (struct parport_gsc_private), GFP_KERNEL);
> > if (!priv) {
> > - printk (KERN_DEBUG "parport (0x%lx): no memory!\n", base);
> > + printk(KERN_DEBUG "parport (0x%lx): no memory!\n", base);
>
> pr_warn() instead?
For all of your remarks, the intent here is to keep the
same output.
Logging level changes and printk(KERN_DEBUG -> pr_debug(
conversions cause the dmesg output to be different.
printk(KERN_DEBUG...)
is always emitted when the console level allows but
pr_debug(...)
is not normally compiled in at all.
So it's possible for all printk(KERN_DEBUG to be pr_debug
but that causes no logging at all to be emitted when
DEBUG is not defined or CONFIG_DYNAMIC_DEBUG not enabled.
Powered by blists - more mailing lists