http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08d7ea1
)
update DBG_DISCARD macro to allow the compiler to see the argument for compile-time...
author
Marty Connor
<mdc@etherboot.org>
Thu, 14 Sep 2006 17:38:17 +0000
(17:38 +0000)
committer
Marty Connor
<mdc@etherboot.org>
Thu, 14 Sep 2006 17:38:17 +0000
(17:38 +0000)
src/include/compiler.h
patch
|
blob
|
history
diff --git
a/src/include/compiler.h
b/src/include/compiler.h
index
f2e63f1
..
3aee4a6
100644
(file)
--- a/
src/include/compiler.h
+++ b/
src/include/compiler.h
@@
-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