提交 76a0ee3d 编写于 作者: P Paul Mackerras

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: NPaul Mackerras <paulus@samba.org>
上级 cd8a5673
...@@ -9,7 +9,12 @@ ...@@ -9,7 +9,12 @@
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include <asm/pmac_pfunc.h> #include <asm/pmac_pfunc.h>
#undef DEBUG
#ifdef DEBUG
#define DBG(fmt...) printk(fmt) #define DBG(fmt...) printk(fmt)
#else
#define DBG(fmt...)
#endif
static irqreturn_t macio_gpio_irq(int irq, void *data, struct pt_regs *regs) static irqreturn_t macio_gpio_irq(int irq, void *data, struct pt_regs *regs)
{ {
......
...@@ -20,7 +20,13 @@ ...@@ -20,7 +20,13 @@
#define LOG_PARSE(fmt...) #define LOG_PARSE(fmt...)
#define LOG_ERROR(fmt...) printk(fmt) #define LOG_ERROR(fmt...) printk(fmt)
#define LOG_BLOB(t,b,c) #define LOG_BLOB(t,b,c)
#undef DEBUG
#ifdef DEBUG
#define DBG(fmt...) printk(fmt) #define DBG(fmt...) printk(fmt)
#else
#define DBG(fmt...)
#endif
/* Command numbers */ /* Command numbers */
#define PMF_CMD_LIST 0 #define PMF_CMD_LIST 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册