Skip to content

Commit 2e532d6

Browse files
committed
{pci,pnp} quirks.c: don't use deprecated print_fn_descriptor_symbol()
I dunno how this missed Bjorn and his quest to use %pF in commit c80cfb0 ("vsprintf: use new vsprintf symbolic function pointer format"), but it did. So use %pF in the two remaining places that still tried to print out function pointers by hand. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 52ad096 commit 2e532d6

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎drivers/pci/quirks.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,8 +1561,7 @@ static void pci_do_fixups(struct pci_dev *dev, struct pci_fixup *f, struct pci_f
15611561
if ((f->vendor == dev->vendor || f->vendor == (u16) PCI_ANY_ID) &&
15621562
(f->device == dev->device || f->device == (u16) PCI_ANY_ID)) {
15631563
#ifdef DEBUG
1564-
dev_dbg(&dev->dev, "calling ");
1565-
print_fn_descriptor_symbol("%s\n", f->hook);
1564+
dev_dbg(&dev->dev, "calling %pF\n", f->hook);
15661565
#endif
15671566
f->hook(dev);
15681567
}

‎drivers/pnp/quirks.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,7 @@ void pnp_fixup_device(struct pnp_dev *dev)
338338
if (!compare_pnp_id(dev->id, f->id))
339339
continue;
340340
#ifdef DEBUG
341-
dev_dbg(&dev->dev, "%s: calling ", f->id);
342-
print_fn_descriptor_symbol("%s\n", f->quirk_function);
341+
dev_dbg(&dev->dev, "%s: calling %pF\n", f->id, f->quirk_function);
343342
#endif
344343
f->quirk_function(dev);
345344
}

0 commit comments

Comments
 (0)