This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 44e61d7fe7094043c519e305b9c5745a59caf90f Author: YAMAMOTO Takashi <yamam...@midokura.com> AuthorDate: Fri Nov 27 17:49:31 2020 +0900 binfmt/libelf/libelf_ctors.c: Fix a syslog format --- binfmt/libelf/libelf_ctors.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/binfmt/libelf/libelf_ctors.c b/binfmt/libelf/libelf_ctors.c index b5d5c4f..59449b3 100644 --- a/binfmt/libelf/libelf_ctors.c +++ b/binfmt/libelf/libelf_ctors.c @@ -39,6 +39,7 @@ #include <nuttx/config.h> +#include <inttypes.h> #include <string.h> #include <errno.h> #include <assert.h> @@ -192,9 +193,10 @@ int elf_loadctors(FAR struct elf_loadinfo_s *loadinfo) FAR uintptr_t *ptr = (uintptr_t *) ((FAR void *)(&loadinfo->ctors)[i]); - binfo("ctor %d: %08lx + %08lx = %08lx\n", - i, *ptr, (unsigned long)loadinfo->textalloc, - (unsigned long)(*ptr + loadinfo->textalloc)); + binfo("ctor %d: " + "%08" PRIxPTR " + %08" PRIxPTR " = %08" PRIxPTR "\n", + i, *ptr, (uintptr_t)loadinfo->textalloc, + (uintptr_t)(*ptr + loadinfo->textalloc)); *ptr += loadinfo->textalloc; }