From: Bjorn Helgaas Date: Mon, 28 Apr 2008 09:15:58 +0000 (-0700) Subject: PNP: simplify quirk debug output X-Git-Tag: v2.6.26-rc1~768 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b8068162806266552933e395877452de4f2427e7;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c index 37993206ae5..1e8b1b4c09b 100644 --- a/drivers/pnp/quirks.c +++ b/drivers/pnp/quirks.c @@ -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);