Remove the last remaining dfprintf call and remove the dfprintf definition. Signed-off-by: Geoff Levand <geoffrey.levand at am.sony.com> --- kexec/arch/ppc64/kexec-ppc64.c | 2 +- kexec/kexec.h | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) --- ps3-kexec-tools.orig/kexec/arch/ppc64/kexec-ppc64.c +++ ps3-kexec-tools/kexec/arch/ppc64/kexec-ppc64.c @@ -207,7 +207,7 @@ static int get_base_ranges(void) ((unsigned long long *)buf)[1]; base_memory_range[local_memory_ranges].type = RANGE_RAM; local_memory_ranges++; - dfprintf(stderr, "%016llx-%016llx : %x\n", + dprintf("%016llx-%016llx : %x\n", base_memory_range[local_memory_ranges-1].start, base_memory_range[local_memory_ranges-1].end, base_memory_range[local_memory_ranges-1].type); --- ps3-kexec-tools.orig/kexec/kexec.h +++ ps3-kexec-tools/kexec/kexec.h @@ -217,12 +217,11 @@ int parse_iomem_single(char *str, uint64 #define MAX_LINE 160 -#define dprintf(args...) dfprintf(stdout, args) #ifdef DEBUG -#define dfprintf(_f, _args...) do {fprintf(_f, _args);} while(0) +#define dprintf(_args...) do {printf(_args);} while(0) #else -static inline int __attribute__ ((format (printf, 2, 3))) - dfprintf(FILE *f, const char *fmt, ...) {return 0;} +static inline int __attribute__ ((format (printf, 1, 2))) + dprintf(const char *fmt, ...) {return 0;} #endif #endif /* KEXEC_H */