binfmt/libelf/libelf_dtors.c: Fix a syslog format

This commit is contained in:
YAMAMOTO Takashi 2020-11-27 17:53:52 +09:00 committed by Xiang Xiao
parent 44e61d7fe7
commit 85f38b01c1

View file

@ -39,6 +39,8 @@
#include <nuttx/config.h>
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
@ -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;
}