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

View File

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