summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-19 23:04:19 +0000
committerwdenk <wdenk>2003-06-19 23:04:19 +0000
commit52f52c1494eedaeacccad6e2331f4f638b48f5ab (patch)
treeef44c22a2c583fe9b136ae6f38bbb42ef6a71df0 /include/common.h
parent48b42616e928ce6eacfe20276a1614e2b27ac4b5 (diff)
downloadu-boot-imx-52f52c1494eedaeacccad6e2331f4f638b48f5ab.zip
u-boot-imx-52f52c1494eedaeacccad6e2331f4f638b48f5ab.tar.gz
u-boot-imx-52f52c1494eedaeacccad6e2331f4f638b48f5ab.tar.bz2
Patches by Robert Schwebel, 14 Jun 2003:
- add support for Logotronic DL datalogger board - cleanup serial line after kermit binary download - add debugX macro (debug level support) - update mach-types.h to latest arm.linux.org.uk master list.
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index d312682..b0640c6 100644
--- a/include/common.h
+++ b/include/common.h
@@ -64,8 +64,10 @@ typedef volatile unsigned char vu_char;
#ifdef DEBUG
#define debug(fmt,args...) printf (fmt ,##args)
+#define debugX(level,fmt,args...) if (DEBUG>=level) printf(fmt,##args);
#else
#define debug(fmt,args...)
+#define debugX(level,fmt,args...)
#endif /* DEBUG */
typedef void (interrupt_handler_t)(void *);