소스 검색

powerpc: Turn off verbose debug output in powermac platform functions

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>
Paul Mackerras 19 년 전
부모
커밋
76a0ee3d16
2개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      arch/powerpc/platforms/powermac/pfunc_base.c
  2. 6 0
      arch/powerpc/platforms/powermac/pfunc_core.c

+ 5 - 0
arch/powerpc/platforms/powermac/pfunc_base.c

@@ -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)
 {

+ 6 - 0
arch/powerpc/platforms/powermac/pfunc_core.c

@@ -20,7 +20,13 @@
 #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