From a93c3f954964883629a1386b10b90b3bd353d364 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Tue, 13 Jul 2004 15:05:15 +0000 Subject: [PATCH] Include debug.h and remove duplicated code. (Yuval) (Logical change 1.455) --- libntfs/win32_io.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/libntfs/win32_io.c b/libntfs/win32_io.c index 4d09a76a..b02c8dc5 100644 --- a/libntfs/win32_io.c +++ b/libntfs/win32_io.c @@ -43,6 +43,7 @@ struct ntfs_volume; typedef struct ntfs_volume ntfs_volume; #include "config.h" +#include "debug.h" /* Need device, but prevent ../include/types.h to be loaded. */ #define _NTFS_TYPES_H @@ -59,19 +60,6 @@ typedef struct win32_fd { LARGE_INTEGER current_pos; } win32_fd; -#ifdef DEBUG -static __inline__ void Dprintf(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); -} -#else -static __inline__ void Dprintf(const char *fmt, ...) {} -#endif - #define perror(msg) win32_perror(__FILE__,__LINE__,__FUNCTION__,msg) static int win32_perror(const char *file, int line, const char *func,