Skip to content
Snippets Groups Projects
Commit 2311a97a authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Remaining files under nuttx/binfmt changed to use the corrected syslog interfaces

parent 615004bb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment