8 #include <syslinux/debug.h>
10 #if !defined(DEBUG_PORT) && !defined(DEBUG_STDIO)
19 # define dprintf printf
20 # define vdprintf vprintf
21 # define ddprintf dprintf
23 void dprintf(const char *, ...);
24 void vdprintf(const char *, va_list);
25 # define ddprintf(...) { printf(__VA_ARGS__); dprintf(__VA_ARGS__); }
30 #define dprintf(...) \
31 if (syslinux_debug_enabled) \
33 #define vdprintf(fmt, ap) \
34 if (syslinux_debug_enabled) \
36 #define ddprintf printf
38 #endif /* CORE_DEBUG */
41 /* Really verbose debugging... */
42 # define dprintf2 dprintf
43 # define vdprintf2 vdprintf
45 # define dprintf2(fmt, ...) ((void)(0))
46 # define vdprintf2(fmt, ap) ((void)(0))
49 #endif /* _DPRINTF_H */