summaryrefslogtreecommitdiff
path: root/openpcd/firmware/src/dbgu.h
diff options
context:
space:
mode:
Diffstat (limited to 'openpcd/firmware/src/dbgu.h')
-rw-r--r--openpcd/firmware/src/dbgu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpcd/firmware/src/dbgu.h b/openpcd/firmware/src/dbgu.h
index c38fd63..1731e10 100644
--- a/openpcd/firmware/src/dbgu.h
+++ b/openpcd/firmware/src/dbgu.h
@@ -32,6 +32,8 @@ 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
personal git repositories of Harald Welte. Your mileage may vary