Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932125AbbLRMb7 (ORCPT ); Fri, 18 Dec 2015 07:31:59 -0500 Received: from mga14.intel.com ([192.55.52.115]:64710 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752646AbbLRMb5 (ORCPT ); Fri, 18 Dec 2015 07:31:57 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,446,1444719600"; d="scan'208";a="874237020" Message-ID: <1450441926.30729.208.camel@linux.intel.com> Subject: Re: [PATCH v2 10/11] tty: serial: 8250: Replace printk by pr_* From: Andy Shevchenko 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 Date: Fri, 18 Dec 2015 14:32:06 +0200 In-Reply-To: <1450437723-2978-11-git-send-email-anton.wuerfel@fau.de> References: <1450437723-2978-1-git-send-email-anton.wuerfel@fau.de> <1450437723-2978-11-git-send-email-anton.wuerfel@fau.de> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.2-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1495 Lines: 51 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) >   return -ENODEV; >   >  #ifdef SERIAL_DEBUG_PNP > - printk(KERN_DEBUG I think it's not okay. The rationale to have printk(KERN_DEBUG …) 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 SERIAL_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", > -        uart.port.iobase, uart.port.mapbase, > uart.port.irq, uart.port.iotype); > + pr_debug("Setup PNP port: port %x, mem 0x%lx, irq %d, type > %d\n", > +  uart.port.iobase, uart.port.mapbase, > +  uart.port.irq, uart.port.iotype); >  #endif > -- Andy Shevchenko Intel Finland Oy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/