From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 438D2C04AB3 for ; Thu, 9 May 2019 18:31:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 22EEA217D9 for ; Thu, 9 May 2019 18:31:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726819AbfEISbl (ORCPT ); Thu, 9 May 2019 14:31:41 -0400 Received: from smtprelay0050.hostedemail.com ([216.40.44.50]:48919 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726632AbfEISbl (ORCPT ); Thu, 9 May 2019 14:31:41 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 6492A180A8136; Thu, 9 May 2019 18:31:39 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: cable42_65347f630c056 X-Filterd-Recvd-Size: 2443 Received: from XPS-9350 (unknown [172.58.22.140]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Thu, 9 May 2019 18:31:35 +0000 (UTC) Message-ID: <69ff0a66d8c68f9e1adc8308847541e9566fe23e.camel@perches.com> Subject: Re: [PATCH 02/10] PCI/PME: Replace dev_printk(KERN_DEBUG) with dev_info() From: Joe Perches To: Andy Shevchenko , Bjorn Helgaas Cc: Frederick Lawler , Mika Westerberg , Lukas Wunner , Andy Shevchenko , Keith Busch , Dongdong Liu , Sven Van Asbroeck , linux-pci@vger.kernel.org, Linux Kernel Mailing List , Bjorn Helgaas Date: Thu, 09 May 2019 11:31:04 -0700 In-Reply-To: References: <20190509141456.223614-1-helgaas@kernel.org> <20190509141456.223614-3-helgaas@kernel.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-05-09 at 20:35 +0300, Andy Shevchenko wrote: > On Thu, May 9, 2019 at 5:18 PM Bjorn Helgaas wrote: > > Replace dev_printk(KERN_DEBUG) with dev_info() or dev_err() to be more > > consistent with other logging. > > > > These could be converted to dev_dbg(), but that depends on > > CONFIG_DYNAMIC_DEBUG and DEBUG, and we want most of these messages to > > *always* be in the dmesg log. > > > > Also, use dev_fmt() to add the service name. Example output change: > > > > - pcieport 0000:80:10.0: Signaling PME with IRQ ... > > + pcieport 0000:80:10.0: PME: Signaling with IRQ ... > > + pci_info(port, "interrupt generated for non-existent device %02x:%02x.%d\n", > > Can we be slightly more consistent here, i.e. start from Capital letter? > > > + busnr, PCI_SLOT(devfn), PCI_FUNC(devfn)); > > + pci_info(port, "Spurious native interrupt!\n"); > > + pci_info(port, "Signaling with IRQ %d\n", srv->irq); Why change the logging level? Why not use #define DEBUG and use pci_dbg ?