diff options
Diffstat (limited to 'com32')
-rw-r--r-- | com32/include/dprintf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/include/dprintf.h b/com32/include/dprintf.h index ef23282b..b3f1b46b 100644 --- a/com32/include/dprintf.h +++ b/com32/include/dprintf.h @@ -18,9 +18,11 @@ # ifdef DEBUG_STDIO # define dprintf printf # define vdprintf vprintf +# define ddprintf dprintf # else void dprintf(const char *, ...); void vdprintf(const char *, va_list); +# define ddprintf(...) { printf(__VA_ARGS__); dprintf(__VA_ARGS__); } # endif #else @@ -31,6 +33,7 @@ void vdprintf(const char *, va_list); #define vdprintf(fmt, ap) \ if (syslinux_debug_enabled) \ vprintf(fmt, ap) +#define ddprintf printf #endif /* CORE_DEBUG */ |