Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

{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
c80cfb0406c01bb5da91bfe30f5cb1fd96831138 ("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>

+2 -4
+1 -2
drivers/pci/quirks.c
··· 1561 1561 if ((f->vendor == dev->vendor || f->vendor == (u16) PCI_ANY_ID) && 1562 1562 (f->device == dev->device || f->device == (u16) PCI_ANY_ID)) { 1563 1563 #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); 1566 1565 #endif 1567 1566 f->hook(dev); 1568 1567 }
+1 -2
drivers/pnp/quirks.c
··· 338 338 if (!compare_pnp_id(dev->id, f->id)) 339 339 continue; 340 340 #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); 343 342 #endif 344 343 f->quirk_function(dev); 345 344 }