summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorMatthias Kaehlcke <matthias@kaehlcke.net>2010-01-31 17:39:49 +0100
committerBen Warren <biggerbadderben@gmail.com>2010-01-31 22:37:12 -0800
commit594d57d0ccce649d6ccd881b8d9c5ea8d0c307ef (patch)
tree017917edcf2e2bb280dff23b43c9ffa2f6fc6eb2 /include/common.h
parent582c55a0274f38e6e7e35b95e7ab81d3e912f700 (diff)
downloadu-boot-imx-594d57d0ccce649d6ccd881b8d9c5ea8d0c307ef.zip
u-boot-imx-594d57d0ccce649d6ccd881b8d9c5ea8d0c307ef.tar.gz
u-boot-imx-594d57d0ccce649d6ccd881b8d9c5ea8d0c307ef.tar.bz2
Add EP93xx ethernet driver
Added ethernet driver for EP93xx SoCs Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 81f2b59..0ae5abc 100644
--- a/include/common.h
+++ b/include/common.h
@@ -123,6 +123,11 @@ typedef volatile unsigned char vu_char;
#define debugX(level,fmt,args...)
#endif /* DEBUG */
+#define error(fmt, args...) do { \
+ printf("ERROR: " fmt "\nat %s:%d/%s()\n", \
+ ##args, __FILE__, __LINE__, __func__); \
+} while (0)
+
#ifndef BUG
#define BUG() do { \
printf("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \