diff options
author | H. Peter Anvin <hpa@zytor.com> | 2011-06-20 21:19:17 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2011-06-20 21:19:17 -0700 |
commit | 24ea7f3ece30a586a149dfb60c49b6a6f92dd17e (patch) | |
tree | f952aa6eeb2388c75cbde48841c5afa8f5e1e307 /com32/lib/dprintf.c | |
parent | 4f1ec3082f4c2b9c07e06c87347c58173afd99a3 (diff) | |
download | syslinux-24ea7f3ece30a586a149dfb60c49b6a6f92dd17e.tar.gz |
dprintf: add the ability to log to stdio
Add the ability to redirect dprintf to stdio when there is no other
choice.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/dprintf.c')
-rw-r--r-- | com32/lib/dprintf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/lib/dprintf.c b/com32/lib/dprintf.c index 900c0a47..aad11746 100644 --- a/com32/lib/dprintf.c +++ b/com32/lib/dprintf.c @@ -9,6 +9,7 @@ #define DEBUG 1 #include <dprintf.h> +#ifndef dprintf void dprintf(const char *format, ...) { va_list ap; @@ -17,3 +18,4 @@ void dprintf(const char *format, ...) vdprintf(format, ap); va_end(ap); } +#endif |