Commit c9bbb4abb658daf6cc6f92fb4751a7796a5aab75

Authored by Yinghai Lu
Committed by Jesse Barnes
1 parent c8761fe80e

PCI: use %pF instead of print_fn_descriptor_symbol() in quirks.c

Use %pF instead of print_fn_descriptor_symbol() in quirks.c to get the name of
the hook we're calling.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

drivers/pci/quirks.c
... ... @@ -1935,8 +1935,7 @@
1935 1935 if ((f->vendor == dev->vendor || f->vendor == (u16) PCI_ANY_ID) &&
1936 1936 (f->device == dev->device || f->device == (u16) PCI_ANY_ID)) {
1937 1937 #ifdef DEBUG
1938   - dev_dbg(&dev->dev, "calling ");
1939   - print_fn_descriptor_symbol("%s\n", f->hook);
  1938 + dev_dbg(&dev->dev, "calling %pF\n", f->hook);
1940 1939 #endif
1941 1940 f->hook(dev);
1942 1941 }