From ea0d7f9baeb9184930c93f995611b5e40d0073ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Fri, 11 May 2012 17:46:50 +0800 Subject: [PATCH] rk30: clock: better support log --- arch/arm/mach-rk30/clock_data.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-rk30/clock_data.c b/arch/arm/mach-rk30/clock_data.c index b14cb0929072..79d728e57d87 100644 --- a/arch/arm/mach-rk30/clock_data.c +++ b/arch/arm/mach-rk30/clock_data.c @@ -175,10 +175,14 @@ void rk30_clkdev_add(struct clk_lookup *cl); #define cru_writel_frac(v,offset) cru_writel((v),(offset)) #endif - -#define CRU_PRINTK_DBG(fmt, args...) {while(0);}//pr_debug(fmt, ## args); -#define CRU_PRINTK_ERR(fmt, args...) pr_err(fmt, ## args); -#define CRU_PRINTK_LOG(fmt, args...) pr_debug(fmt, ## args); +#ifdef DEBUG +#define CRU_PRINTK_DBG(fmt, args...) pr_debug(fmt, ## args) +#define CRU_PRINTK_LOG(fmt, args...) pr_debug(fmt, ## args) +#else +#define CRU_PRINTK_DBG(fmt, args...) do {} while(0) +#define CRU_PRINTK_LOG(fmt, args...) do {} while(0) +#endif +#define CRU_PRINTK_ERR(fmt, args...) pr_err(fmt, ## args) #define get_cru_bits(con,mask,shift)\ -- 2.34.1