Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756576AbYHSWzJ (ORCPT ); Tue, 19 Aug 2008 18:55:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754850AbYHSWxg (ORCPT ); Tue, 19 Aug 2008 18:53:36 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:47891 "EHLO g1t0027.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754832AbYHSWxe (ORCPT ); Tue, 19 Aug 2008 18:53:34 -0400 From: Bjorn Helgaas Subject: [PATCH 4/8] PNP: use new vsprintf symbolic function pointer format To: Andi Kleen Cc: Len Brown , Adam M Belay , Andrew Morton , Thomas Renninger , Dave Jones , Ben Collins , Dann Frazier , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 19 Aug 2008 16:53:31 -0600 Message-ID: <20080819225331.28206.82730.stgit@tigger.helgaas> In-Reply-To: <20080819225310.28206.1011.stgit@tigger.helgaas> References: <20080819225310.28206.1011.stgit@tigger.helgaas> User-Agent: StGIT/0.13 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 978 Lines: 33 Use the '%pF' format to get rid of an "#ifdef DEBUG". Signed-off-by: Bjorn Helgaas --- drivers/pnp/quirks.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c index 0bdf9b8..414bb09 100644 --- a/drivers/pnp/quirks.c +++ b/drivers/pnp/quirks.c @@ -337,10 +337,8 @@ void pnp_fixup_device(struct pnp_dev *dev) for (f = pnp_fixups; *f->id; f++) { if (!compare_pnp_id(dev->id, f->id)) continue; -#ifdef DEBUG - dev_dbg(&dev->dev, "%s: calling ", f->id); - print_fn_descriptor_symbol("%s\n", f->quirk_function); -#endif + dev_dbg(&dev->dev, "%s: calling %pF\n", f->id, + f->quirk_function); f->quirk_function(dev); } } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/