update DBG_DISCARD macro to allow the compiler to see the argument for compile-time...
authorMarty Connor <mdc@etherboot.org>
Thu, 14 Sep 2006 17:38:17 +0000 (17:38 +0000)
committerMarty Connor <mdc@etherboot.org>
Thu, 14 Sep 2006 17:38:17 +0000 (17:38 +0000)
src/include/compiler.h

index f2e63f1..3aee4a6 100644 (file)
@@ -124,7 +124,9 @@ __asm__ ( ".equ\tDEBUG_LEVEL, " DEBUG_SYMBOL_STR );
 #endif
 
 #define DBG_PRINT(...) printf ( __VA_ARGS__ )
-#define DBG_DISCARD(...) do {} while ( 0 )
+#define DBG_DISCARD(...) do { if ( 0 ) printf ( __VA_ARGS__ ); } while ( 0 )
+/*#define DBG_DISCARD(...) do {} while ( 0 )*/
+
 #define DBG  DBG_DISCARD
 #define DBG2 DBG_DISCARD