Skip to content

Commit

Permalink
binfmt/libelf/libelf_dtors.c: Fix a syslog format
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt authored and xiaoxiang781216 committed Nov 27, 2020
1 parent 44e61d7 commit 85f38b0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions binfmt/libelf/libelf_dtors.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

#include <nuttx/config.h>

#include <inttypes.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
Expand Down Expand Up @@ -192,9 +194,10 @@ int elf_loaddtors(FAR struct elf_loadinfo_s *loadinfo)
FAR uintptr_t *ptr = (uintptr_t *)
((FAR void *)(&loadinfo->dtors)[i]);

binfo("dtor %d: %08lx + %08lx = %08lx\n",
i, *ptr, (unsigned long)loadinfo->textalloc,
(unsigned long)(*ptr + loadinfo->textalloc));
binfo("dtor %d: "
"%08" PRIxPTR " + %08" PRIxPTR " = %08" PRIxPTR "\n",
i, *ptr, (uintptr_t)loadinfo->textalloc,
(uintptr_t)(*ptr + loadinfo->textalloc));

*ptr += loadinfo->textalloc;
}
Expand Down

0 comments on commit 85f38b0

Please sign in to comment.