]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf295b569e2c9bcb425f3c0919a3e6579898defea
tree427ff822ffdf3929e21e98d20d48ba8646865daa
parent8a637fdcac54206b11738ec4855554226c488320
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