Pārlūkot izejas kodu

Force a standard format upon debug messages.

tags/v0.9.3
Michael Brown 19 gadus atpakaļ
vecāks
revīzija
905ca1f21d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/include/compiler.h

+ 1
- 1
src/include/compiler.h Parādīt failu

@@ -46,7 +46,7 @@ __asm__ ( ".equ\t" OBJECT_SYMBOL_STR ", 0" );
46 46
 #define DEBUG_SYMBOL _H2 ( debug_, OBJECT )
47 47
 #if DEBUG_SYMBOL
48 48
 #include "console.h"
49
-#define DBG(...) printf ( __VA_ARGS__ )
49
+#define DBG(...) printf ( _XSTR ( OBJECT ) ": " __VA_ARGS__ )
50 50
 #define DEBUG_SYMBOL_STR _XSTR ( DEBUG_SYMBOL )
51 51
 __asm__ ( ".equ\tWITH_DEBUG_MESSAGES, 0" );
52 52
 #else

Notiek ielāde…
Atcelt
Saglabāt