提交 83bb643d 编写于 作者: G Geert Uytterhoeven 提交者: Paul Mackerras

[POWERPC] PS3: Simplify definition of DBG

Simplify the PS3 definition of DBG.
Signed-off-by: NGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: NGeoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 743c1bb0
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
#include "platform.h" #include "platform.h"
#if defined(DEBUG) #if defined(DEBUG)
#define DBG(fmt...) udbg_printf(fmt) #define DBG udbg_printf
#else #else
#define DBG(fmt...) do{if(0)printk(fmt);}while(0) #define DBG pr_debug
#endif #endif
static struct hash_pte *htab; static struct hash_pte *htab;
......
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
#include "platform.h" #include "platform.h"
#if defined(DEBUG) #if defined(DEBUG)
#define DBG(fmt...) udbg_printf(fmt) #define DBG udbg_printf
#else #else
#define DBG(fmt...) do{if(0)printk(fmt);}while(0) #define DBG pr_debug
#endif #endif
/** /**
......
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
#include "platform.h" #include "platform.h"
#if defined(DEBUG) #if defined(DEBUG)
#define DBG(fmt...) udbg_printf(fmt) #define DBG udbg_printf
#else #else
#define DBG(fmt...) do{if(0)printk(fmt);}while(0) #define DBG pr_debug
#endif #endif
enum { enum {
......
...@@ -37,9 +37,9 @@ ...@@ -37,9 +37,9 @@
#include "platform.h" #include "platform.h"
#if defined(DEBUG) #if defined(DEBUG)
#define DBG(fmt...) udbg_printf(fmt) #define DBG udbg_printf
#else #else
#define DBG(fmt...) do{if(0)printk(fmt);}while(0) #define DBG pr_debug
#endif #endif
#if !defined(CONFIG_SMP) #if !defined(CONFIG_SMP)
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
#include "platform.h" #include "platform.h"
#if defined(DEBUG) #if defined(DEBUG)
#define DBG(fmt...) udbg_printf(fmt) #define DBG udbg_printf
#else #else
#define DBG(fmt...) do{if(0)printk(fmt);}while(0) #define DBG pr_debug
#endif #endif
static irqreturn_t ipi_function_handler(int irq, void *msg) static irqreturn_t ipi_function_handler(int irq, void *msg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册