PNP: simplify quirk debug output

print_fn_descriptor_symbol() prints the address if we don't have a symbol,
so no need to print both.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Bjorn Helgaas 2008-04-28 02:15:58 -07:00 committed by Linus Torvalds
parent 0bc11fd446
commit b806816280
1 changed files with 2 additions and 2 deletions

View File

@ -214,8 +214,8 @@ void pnp_fixup_device(struct pnp_dev *dev)
quirk = pnp_fixups[i].quirk_function;
#ifdef DEBUG
dev_dbg(&dev->dev, "calling quirk 0x%p", quirk);
print_fn_descriptor_symbol(": %s()\n",
dev_dbg(&dev->dev, "calling ");
print_fn_descriptor_symbol("%s()\n",
(unsigned long) *quirk);
#endif
(*quirk)(dev);