Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9f23ed3b947746a7a270e955e7d2a8f9df347ce3
Commit:     9f23ed3b947746a7a270e955e7d2a8f9df347ce3
Parent:     e64aeccbeca1f7e22174ca3a12ec35a8f5566515
Author:     [EMAIL PROTECTED] <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 17 14:09:38 2007 -0700
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Feb 1 15:04:26 2008 -0800

    PCI: print quirk name in debug messages
    
    Instead of printing this:
    
        PCI: Calling quirk c023b250 for 0000:00:00.0
    
    we can print this:
    
        pci 0000:00:00.0: calling quirk 0xc023b270: 
quirk_cardbus_legacy+0x0/0x30()
    
    The address is superfluous because sprint_symbol() includes the
    address if the symbol lookup fails, but this is the same style used
    in do_initcalls() and pnp_fixup_device().
    
    Signed-off-by: Bjorn Helgaas <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 drivers/pci/quirks.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 637903a..873125b 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -21,6 +21,7 @@
 #include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/acpi.h>
+#include <linux/kallsyms.h>
 #include "pci.h"
 
 /* The Mellanox Tavor device gives false positive parity errors
@@ -1500,7 +1501,11 @@ static void pci_do_fixups(struct pci_dev *dev, struct 
pci_fixup *f, struct pci_f
        while (f < end) {
                if ((f->vendor == dev->vendor || f->vendor == (u16) PCI_ANY_ID) 
&&
                    (f->device == dev->device || f->device == (u16) 
PCI_ANY_ID)) {
-                       pr_debug("PCI: Calling quirk %p for %s\n", f->hook, 
pci_name(dev));
+#ifdef DEBUG
+                       dev_dbg(&dev->dev, "calling quirk 0x%p", f->hook);
+                       print_fn_descriptor_symbol(": %s()\n",
+                               (unsigned long) f->hook);
+#endif
                        f->hook(dev);
                }
                f++;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to