ColdFire: Add M5253DEMO platform support for MCF5253
[oweals/u-boot.git] / include / common.h
index 2fcb1fd379f93ca2443bbfdbb627a7d2cc96f3d5..06ed27806ff261da3b1009c1c0824e8c90d655c9 100644 (file)
@@ -119,11 +119,13 @@ typedef volatile unsigned char    vu_char;
 #define debugX(level,fmt,args...)
 #endif /* DEBUG */
 
+#ifndef BUG
 #define BUG() do { \
        printf("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \
        panic("BUG!"); \
 } while (0)
 #define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0)
+#endif /* BUG */
 
 typedef void (interrupt_handler_t)(void *);