From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Subject: Re: [PATCH v2 10/11] tty: serial: 8250: Replace printk by pr_* Date: Fri, 18 Dec 2015 14:32:06 +0200 Message-ID: <1450441926.30729.208.camel@linux.intel.com> References: <1450437723-2978-1-git-send-email-anton.wuerfel@fau.de> <1450437723-2978-11-git-send-email-anton.wuerfel@fau.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1450437723-2978-11-git-send-email-anton.wuerfel@fau.de> Sender: linux-parisc-owner@vger.kernel.org To: Anton Wuerfel , linux-serial@vger.kernel.org Cc: Greg Kroah-Hartman , Jiri Slaby , "James E.J. Bottomley" , Helge Deller , Peter Hurley , Heikki Krogerus , Qipeng Zha , Desmond Liu , Wang Long , Matt Redfearn , Paul Burton , Ralf Baechle , Krzysztof Kozlowski , Peter Hung , Soeren Grunewald , Adam Lee , "Maciej S. Szmigiero" , Mans Rullgard , linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linux-kernel@i4.cs.fau.de, Phillip Raffeck List-Id: linux-serial@vger.kernel.org On Fri, 2015-12-18 at 12:22 +0100, Anton Wuerfel wrote: > This comes with a slight change in behaviour as > pr_debug is configurable via CONFIG_DYNAMIC_DEBUG, whereas > printk(KERN_DEBUG ...) is not. --- a/drivers/tty/serial/8250/8250_pnp.c > +++ b/drivers/tty/serial/8250/8250_pnp.c > @@ -465,9 +465,9 @@ serial_pnp_probe(struct pnp_dev *dev, const > struct pnp_device_id *dev_id) > =C2=A0 return -ENODEV; > =C2=A0 > =C2=A0#ifdef SERIAL_DEBUG_PNP > - printk(KERN_DEBUG I think it's not okay. The rationale to have printk(KERN_DEBUG =E2=80=A6) here is to allow a compilation with support of those messages independently on DYNAMIC_DEBUG. If you want to switch to DYNAMIC_DEBUG you have to carefully check what is done under=C2=A0SERIAL_DEBUG_PNP. git grep on current linux-next shows that SERIAL_DEBUG_PNP is an orphan. So, I would suggest to remove #ifdef. > - "Setup PNP port: port %x, mem 0x%lx, irq %d, type > %d\n", > - =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0uart.port.iobase, uart.p= ort.mapbase, > uart.port.irq, uart.port.iotype); > + pr_debug("Setup PNP port: port %x, mem 0x%lx, irq %d, type > %d\n", > + =C2=A0uart.port.iobase, uart.port.mapbase, > + =C2=A0uart.port.irq, uart.port.iotype); > =C2=A0#endif >=20 --=20 Andy Shevchenko Intel Finland Oy -- To unsubscribe from this list: send the line "unsubscribe linux-parisc"= in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html