diff options
author | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-07-23 16:46:35 +0000 |
---|---|---|
committer | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-07-23 16:46:35 +0000 |
commit | eca19c6f633e4f547ba14258ada05fed2a9787c6 (patch) | |
tree | 7d217de548bd24f05628f7cca6f3171d33e18a26 | |
parent | 32b83e88df0b33dc382ad2182d2579e7ead7d177 (diff) |
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
-rw-r--r-- | openpcd/firmware/src/dbgu.h | 5 |
1 files 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 */
|