libs/libc/modlib/modlib_bind.c: Fix syslog formats
This commit is contained in:
parent
d2d48a1b9b
commit
6bdca69a32
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user