diff --git a/binfmt/libelf/libelf_read.c b/binfmt/libelf/libelf_read.c index 8be8a33933..ce695e2727 100644 --- a/binfmt/libelf/libelf_read.c +++ b/binfmt/libelf/libelf_read.c @@ -54,8 +54,6 @@ ****************************************************************************/ #undef ELF_DUMP_READDATA /* Define to dump all file data read */ -#define DUMPER syslog /* If ELF_DUMP_READDATA is defined, this - * is the API used to dump data */ /**************************************************************************** * Private Constant Data @@ -78,12 +76,13 @@ static inline void elf_dumpreaddata(char *buffer, int buflen) for (i = 0; i < buflen; i += 32) { - DUMPER("%04x:", i); + syslog(LOG_DEBUG, "%04x:", i); for (j = 0; j < 32; j += sizeof(uint32_t)) { - DUMPER(" %08x", *buf32++); + syslog(LOG_DEBUG, " %08x", *buf32++); } - DUMPER("\n"); + + syslog(LOG_DEBUG, "\n"); } } #else diff --git a/binfmt/libnxflat/libnxflat_read.c b/binfmt/libnxflat/libnxflat_read.c index b5850ebbb2..00754a9b40 100644 --- a/binfmt/libnxflat/libnxflat_read.c +++ b/binfmt/libnxflat/libnxflat_read.c @@ -55,8 +55,6 @@ ****************************************************************************/ #undef NXFLAT_DUMP_READDATA /* Define to dump all file data read */ -#define DUMPER syslog /* If NXFLAT_DUMP_READDATA is defined, this - * is the API used to dump data */ /**************************************************************************** * Private Constant Data @@ -79,12 +77,13 @@ static inline void nxflat_dumpreaddata(char *buffer, int buflen) for (i = 0; i < buflen; i += 32) { - DUMPER("%04x:", i); + syslog(LOG_DEBUG, "%04x:", i); for (j = 0; j < 32; j += sizeof(uint32_t)) { - DUMPER(" %08x", *buf32++); + syslog(LOG_DEBUG, " %08x", *buf32++); } - DUMPER("\n"); + + syslog(LOG_DEBUG, "\n"); } } #else