Automatically drag in console.h if DBG() is being defined as printf().
authorMichael Brown <mcb30@etherboot.org>
Sun, 17 Apr 2005 10:25:06 +0000 (10:25 +0000)
committerMichael Brown <mcb30@etherboot.org>
Sun, 17 Apr 2005 10:25:06 +0000 (10:25 +0000)
src/include/compiler.h

index 82aea0e..58422d6 100644 (file)
@@ -45,6 +45,7 @@ __asm__ ( ".equ\t" OBJECT_SYMBOL_STR ", 0" );
  */
 #define DEBUG_SYMBOL _H2 ( debug_, OBJECT )
 #if DEBUG_SYMBOL
+#include "console.h"
 #define DBG(...) printf ( __VA_ARGS__ )
 #define DEBUG_SYMBOL_STR _XSTR ( DEBUG_SYMBOL )
 __asm__ ( ".equ\tWITH_DEBUG_MESSAGES, 0" );