binfmt/libelf/libelf_ctors.c: Fix a syslog format
This commit is contained in:
parent
5564fc6e4a
commit
44e61d7fe7
@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -192,9 +193,10 @@ int elf_loadctors(FAR struct elf_loadinfo_s *loadinfo)
|
|||||||
FAR uintptr_t *ptr = (uintptr_t *)
|
FAR uintptr_t *ptr = (uintptr_t *)
|
||||||
((FAR void *)(&loadinfo->ctors)[i]);
|
((FAR void *)(&loadinfo->ctors)[i]);
|
||||||
|
|
||||||
binfo("ctor %d: %08lx + %08lx = %08lx\n",
|
binfo("ctor %d: "
|
||||||
i, *ptr, (unsigned long)loadinfo->textalloc,
|
"%08" PRIxPTR " + %08" PRIxPTR " = %08" PRIxPTR "\n",
|
||||||
(unsigned long)(*ptr + loadinfo->textalloc));
|
i, *ptr, (uintptr_t)loadinfo->textalloc,
|
||||||
|
(uintptr_t)(*ptr + loadinfo->textalloc));
|
||||||
|
|
||||||
*ptr += loadinfo->textalloc;
|
*ptr += loadinfo->textalloc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user