diff options
-rw-r--r-- | kexec/arch/ppc64/kexec-ppc64.c | 2 | ||||
-rw-r--r-- | kexec/kexec.h | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c index b8cd2a9..71cf7e5 100644 --- a/kexec/arch/ppc64/kexec-ppc64.c +++ b/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); diff --git a/kexec/kexec.h b/kexec/kexec.h index d54dd80..6bb81a0 100644 --- a/kexec/kexec.h +++ b/kexec/kexec.h @@ -217,12 +217,11 @@ int parse_iomem_single(char *str, uint64_t *start, uint64_t *end); #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 */ |