Skip to content

Commit

Permalink
[POWERPC] PS3: Simplify definition of DBG
Browse files Browse the repository at this point in the history
Simplify the PS3 definition of DBG.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Geert Uytterhoeven authored and Paul Mackerras committed Jun 28, 2007
1 parent 743c1bb commit 83bb643
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/ps3/htab.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include "platform.h"

#if defined(DEBUG)
#define DBG(fmt...) udbg_printf(fmt)
#define DBG udbg_printf
#else
#define DBG(fmt...) do{if(0)printk(fmt);}while(0)
#define DBG pr_debug
#endif

static struct hash_pte *htab;
Expand Down
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/ps3/interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
#include "platform.h"

#if defined(DEBUG)
#define DBG(fmt...) udbg_printf(fmt)
#define DBG udbg_printf
#else
#define DBG(fmt...) do{if(0)printk(fmt);}while(0)
#define DBG pr_debug
#endif

/**
Expand Down
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/ps3/mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
#include "platform.h"

#if defined(DEBUG)
#define DBG(fmt...) udbg_printf(fmt)
#define DBG udbg_printf
#else
#define DBG(fmt...) do{if(0)printk(fmt);}while(0)
#define DBG pr_debug
#endif

enum {
Expand Down
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/ps3/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
#include "platform.h"

#if defined(DEBUG)
#define DBG(fmt...) udbg_printf(fmt)
#define DBG udbg_printf
#else
#define DBG(fmt...) do{if(0)printk(fmt);}while(0)
#define DBG pr_debug
#endif

#if !defined(CONFIG_SMP)
Expand Down
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/ps3/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
#include "platform.h"

#if defined(DEBUG)
#define DBG(fmt...) udbg_printf(fmt)
#define DBG udbg_printf
#else
#define DBG(fmt...) do{if(0)printk(fmt);}while(0)
#define DBG pr_debug
#endif

static irqreturn_t ipi_function_handler(int irq, void *msg)
Expand Down

0 comments on commit 83bb643

Please sign in to comment.