use global Dprintf

(Logical change 1.103)
edge.strict_endians
flatcap.org!flatcap 2003-01-19 11:32:24 +00:00
parent 41854fb250
commit 1d72ba4c99
2 changed files with 2 additions and 31 deletions

View File

@ -24,10 +24,7 @@
#include "config.h"
#include <stdio.h>
#include <errno.h>
#include <stdarg.h>
#include <getopt.h>
#include <string.h>
#include <stdlib.h>
#include "ntfscluster.h"
@ -35,6 +32,7 @@
#include "attrib.h"
#include "utils.h"
#include "volume.h"
#include "debug.h"
static const char *AUTHOR = "Richard Russon (FlatCap)";
static const char *EXEC_NAME = "ntfscluster";
@ -44,20 +42,6 @@ GEN_PRINTF (Eprintf, stderr, NULL, FALSE)
GEN_PRINTF (Vprintf, stdout, &opts.verbose, TRUE)
GEN_PRINTF (Iprintf, stdout, &opts.quiet, FALSE)
/**
* Dprintf - Print debug messages
*/
#ifndef DEBUG
#define Dprintf(...)
#else
void Dprintf (const char *format, ...)
{
va_list va;
va_start (va, format);
vfprintf (stdout, format, va);
va_end (va);
}
#endif
/**
* version - Print version information about the program
*

View File

@ -50,6 +50,7 @@
#include "inode.h"
#include "disk_io.h"
#include "utils.h"
#include "debug.h"
static const char *AUTHOR = "Richard Russon (FlatCap)";
static const char *EXEC_NAME = "ntfsundelete";
@ -65,20 +66,6 @@ GEN_PRINTF (Iprintf, stdout, &opts.quiet, FALSE)
#define _(S) gettext(S)
/**
* Dprintf - Print debug messages
*/
void Dprintf (const char *format, ...)
{
#ifdef DEBUG
va_list va;
va_start (va, format);
vfprintf (stdout, format, va);
va_end (va);
#endif
}
/**
* version - Print version information about the program
*