summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorMatthias Kaehlcke <matthias@kaehlcke.net>2010-02-01 21:29:44 +0100
committerTom Rix <Tom.Rix@windriver.com>2010-02-05 15:48:29 -0600
commitc20a3c0bac909a0a1311eaafdec156b6a8686d46 (patch)
treef47ac029719da24192aa5a6989bfa16a94b2114d /include/common.h
parenta62921468d652a2f158852ac11ce7c5cab7859f0 (diff)
Add EP93xx ethernet driver
Added ethernet driver for EP93xx SoCs Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Acked-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 86e3163c3b0..a133e3479a4 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__); \