]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PCI: print out PCI device info along with duration
authorYinghai Lu <yinghai@kernel.org>
Thu, 16 Feb 2012 05:40:32 +0000 (21:40 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 24 Feb 2012 22:38:55 +0000 (14:38 -0800)
Makes it a little easier to figure out which device may have caused a
slow quirk.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/quirks.c

index f8f81d4f29ff038cdcb0aba5805c5b82321ccf9b..7ef41832b8338256e2da09d1c1bac8f2b5a8c486 100644 (file)
@@ -2854,14 +2854,15 @@ static void do_one_fixup_debug(void (*fn)(struct pci_dev *dev), struct pci_dev *
        ktime_t calltime, delta, rettime;
        unsigned long long duration;
 
-       printk(KERN_DEBUG "calling  %pF @ %i\n", fn, task_pid_nr(current));
+       printk(KERN_DEBUG "calling  %pF @ %i for %s\n",
+                       fn, task_pid_nr(current), dev_name(&dev->dev));
        calltime = ktime_get();
        fn(dev);
        rettime = ktime_get();
        delta = ktime_sub(rettime, calltime);
        duration = (unsigned long long) ktime_to_ns(delta) >> 10;
-       printk(KERN_DEBUG "pci fixup %pF returned after %lld usecs\n", fn,
-               duration);
+       printk(KERN_DEBUG "pci fixup %pF returned after %lld usecs for %s\n",
+                       fn, duration, dev_name(&dev->dev));
 }
 
 /*