binfmt/libelf/libelf_dtors.c: Fix a syslog format
This commit is contained in:
parent
44e61d7fe7
commit
85f38b01c1
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue