From akpm@linux-foundation.org Wed Mar 12 14:45:43 2008 From: Bjorn Helgaas Date: Tue, 04 Mar 2008 15:22:07 -0800 Subject: PCI: simplify quirk debug output To: greg@kroah.com Cc: linux-pci@atrey.karlin.mff.cuni.cz, akpm@linux-foundation.org, bjorn.helgaas@hp.com Message-ID: <200803042322.m24NM7v0002973@imap1.linux-foundation.org> From: Bjorn Helgaas print_fn_descriptor_symbol() prints the address if we don't have a symbol, so no need to print both. Signed-off-by: Bjorn Helgaas Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- drivers/pci/quirks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -1502,8 +1502,8 @@ static void pci_do_fixups(struct pci_dev if ((f->vendor == dev->vendor || f->vendor == (u16) PCI_ANY_ID) && (f->device == dev->device || f->device == (u16) PCI_ANY_ID)) { #ifdef DEBUG - dev_dbg(&dev->dev, "calling quirk 0x%p", f->hook); - print_fn_descriptor_symbol(": %s()\n", + dev_dbg(&dev->dev, "calling "); + print_fn_descriptor_symbol("%s()\n", (unsigned long) f->hook); #endif f->hook(dev);