]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/common.h
Add EP93xx ethernet driver
[karo-tx-uboot.git] / include / common.h
index 86e3163c3b0b165e45bc52a8ba41fccc31f34df0..a133e3479a48fa0c8e8a232650baf902049f82b2 100644 (file)
@@ -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__); \