libs/libc/modlib/modlib_bind.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-11-22 10:05:59 +09:00 committed by Xiang Xiao
parent d2d48a1b9b
commit 6bdca69a32
1 changed files with 8 additions and 4 deletions

View File

@ -301,8 +301,10 @@ static int modlib_relocate(FAR struct module_s *modp,
rel->r_offset > dstsec->sh_size - sizeof(uint32_t))
{
berr("ERROR: Section %d reloc %d: "
"Relocation address out of range, offset %d size %d\n",
relidx, i, rel->r_offset, dstsec->sh_size);
"Relocation address out of range, "
"offset %" PRIuPTR " size %ju\n",
relidx, i, (uintptr_t)rel->r_offset,
(uintmax_t)dstsec->sh_size);
ret = -EINVAL;
break;
}
@ -487,8 +489,10 @@ static int modlib_relocateadd(FAR struct module_s *modp,
rela->r_offset > dstsec->sh_size - sizeof(uint32_t))
{
berr("ERROR: Section %d reloc %d: "
"Relocation address out of range, offset %d size %d\n",
relidx, i, rela->r_offset, dstsec->sh_size);
"Relocation address out of range, "
"offset %" PRIuPTR " size %ju\n",
relidx, i, (uintptr_t)rela->r_offset,
(uintmax_t)dstsec->sh_size);
ret = -EINVAL;
break;
}