PNP: remove some uses of DEBUG ifdef
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 19 Aug 2008 22:53:36 +0000 (16:53 -0600)
committerLen Brown <len.brown@intel.com>
Sat, 11 Oct 2008 03:31:49 +0000 (23:31 -0400)
commit2663f60d434139298835af690f4891cec5c1e501
tree427ff822ffdf3929e21e98d20d48ba8646865daa
parent668b21de141edcba3fb13a4f810641eea4740fd7
PNP: remove some uses of DEBUG ifdef

Use scnprintf() to build up a buffer of PNP IDs to print.  This
makes the printk atomic and helps get rid of an #ifdef.

Also remove an "#ifdef DEBUG" from some debug functions.  The
functions only produce debug output, so it's OK to run the
function and just have the output be dropped at the end.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/pnp/core.c
drivers/pnp/support.c