From eca19c6f633e4f547ba14258ada05fed2a9787c6 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> Date: Sun, 23 Jul 2006 16:46:35 +0000 Subject: make sure DEBUGP macros work when -DDEBUG is not used git-svn-id: https://svn.openpcd.org:2342/trunk@29 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpcd/firmware/src/dbgu.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openpcd/firmware/src/dbgu.h b/openpcd/firmware/src/dbgu.h index 1731e10..383e26d 100644 --- a/openpcd/firmware/src/dbgu.h +++ b/openpcd/firmware/src/dbgu.h @@ -32,10 +32,11 @@ void AT91F_DBGU_scanf(char * type,unsigned int * val); #ifdef DEBUG extern void debugp(const char *format, ...); #define DEBUGP(x, args ...) debugp(x, ## args) -#define DEBUGPCR(x, args ...) DEBUGP(x "\r\n", ## args) -#define DEBUGPCRF(x, args ...) DEBUGPCR("%s(%d): " x, __FUNCTION__, __LINE__, ## args) #else #define DEBUGP(x, args ...) do {} while(0) #endif +#define DEBUGPCR(x, args ...) DEBUGP(x "\r\n", ## args) +#define DEBUGPCRF(x, args ...) DEBUGPCR("%s(%d): " x, __FUNCTION__, __LINE__, ## args) + #endif /* dbgu_h */ -- cgit v1.2.3