Force a standard format upon debug messages.
authorMichael Brown <mcb30@etherboot.org>
Thu, 21 Apr 2005 18:16:54 +0000 (18:16 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 21 Apr 2005 18:16:54 +0000 (18:16 +0000)
src/include/compiler.h

index 58422d6..80b762c 100644 (file)
@@ -46,7 +46,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 DBG(...) printf ( _XSTR ( OBJECT ) ": " __VA_ARGS__ )
 #define DEBUG_SYMBOL_STR _XSTR ( DEBUG_SYMBOL )
 __asm__ ( ".equ\tWITH_DEBUG_MESSAGES, 0" );
 #else