From 2311a97ad66fd8a7a4358b94e5de70bd7a6f4f7c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 8 Oct 2014 15:34:51 -0600 Subject: [PATCH] Remaining files under nuttx/binfmt changed to use the corrected syslog interfaces --- binfmt/libelf/libelf_read.c | 9 ++++----- binfmt/libnxflat/libnxflat_read.c | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) 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