]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc: Turn off verbose debug output in powermac platform functions
authorPaul Mackerras <paulus@samba.org>
Fri, 3 Mar 2006 09:50:29 +0000 (20:50 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 3 Mar 2006 09:50:29 +0000 (20:50 +1100)
This is along the lines suggested by Chris Lumens but goes further
in that it leaves the DEBUG symbol undefined, making the DBG macro
empty.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/powermac/pfunc_base.c
arch/powerpc/platforms/powermac/pfunc_core.c

index 4ffd2a9832a0c9fba43974b1f0fa00227372599f..9b7150f104147f7de2bdce33da432321bd936c01 100644 (file)
@@ -9,7 +9,12 @@
 #include <asm/pmac_feature.h>
 #include <asm/pmac_pfunc.h>
 
+#undef DEBUG
+#ifdef DEBUG
 #define DBG(fmt...)    printk(fmt)
+#else
+#define DBG(fmt...)
+#endif
 
 static irqreturn_t macio_gpio_irq(int irq, void *data, struct pt_regs *regs)
 {
index 356a739e52b2d9c446b0c720c50f1d843faf90c5..4baa75b1d36ff60a7cb9088a7e6ffa5d10301e0f 100644 (file)
 #define LOG_PARSE(fmt...)
 #define LOG_ERROR(fmt...)      printk(fmt)
 #define LOG_BLOB(t,b,c)
+
+#undef DEBUG
+#ifdef DEBUG
 #define DBG(fmt...)            printk(fmt)
+#else
+#define DBG(fmt...)
+#endif
 
 /* Command numbers */
 #define PMF_CMD_LIST                   0