From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjorn Helgaas Date: Sat, 15 Sep 2012 22:22:11 +0000 Subject: Re: [PATCH 2/2] PCI: Provide a default pcibios_update_irq() Message-Id: List-Id: References: <1347655456-2542-1-git-send-email-thierry.reding@avionic-design.de> <1347655456-2542-2-git-send-email-thierry.reding@avionic-design.de> <20120915075301.GA31044@avionic-0098.mockup.avionic-design.de> In-Reply-To: <20120915075301.GA31044@avionic-0098.mockup.avionic-design.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org On Sat, Sep 15, 2012 at 1:53 AM, Thierry Reding wrote: > On Sat, Sep 15, 2012 at 09:32:10AM +0200, Geert Uytterhoeven wrote: >> On Fri, Sep 14, 2012 at 10:44 PM, Thierry Reding >> wrote: >> > --- a/drivers/pci/setup-irq.c >> > +++ b/drivers/pci/setup-irq.c >> > @@ -17,6 +17,14 @@ >> > #include >> > #include >> > >> > +void __devinit __weak pcibios_update_irq(struct pci_dev *dev, int irq) >> > +{ >> > +#ifdef CONFIG_PCI_DEBUG >> > + printk(KERN_DEBUG "PCI: Assigning IRQ %02d to %s\n", irq, >> > + pci_name(dev)); >> >> pr_debug()? >> Or even better, dev_dbg()? > > The problem with pr_debug() and dev_dbg() is that they will be compiled > out if DEBUG is not defined. Perhaps we should pass -DDEBUG if PCI_DEBUG > is configured and make this dev_dbg()?