[patch 3/3] PCI: Simplify quirk debug output

From: bjorn . helgaas
Date: Mon Feb 18 2008 - 11:36:29 EST


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 <bjorn.helgaas@xxxxxx>

Index: work6/drivers/pci/quirks.c
===================================================================
--- work6.orig/drivers/pci/quirks.c 2008-02-18 08:12:18.000000000 -0700
+++ work6/drivers/pci/quirks.c 2008-02-18 08:42:45.000000000 -0700
@@ -1498,8 +1498,8 @@
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);

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/