Fix incorrect prototype for vdprintf() used in dprintf(), masked by
the non-use of the header file.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
#include <stdio.h>
#include <stdarg.h>
+#undef DEBUG
+#define DEBUG 1
+#include <dprintf.h>
+
int dprintf(const char *format, ...)
{
va_list ap;
int rv;
va_start(ap, format);
- rv = vdprintf(stdout, format, ap);
+ rv = vdprintf(format, ap);
va_end(ap);
return rv;
}
#include <inttypes.h>
#include <sys/io.h>
+#undef DEBUG
+#define DEBUG 1
+#include <dprintf.h>
+
#define BUFFER_SIZE 32768
struct file_info;