log messages of binfmt are very much.

this is to adjust levels of a few of them based on debugging
experiences. These non-critical logs were marked as errors. So we
likely can adjust them as warnings so that real errors can
stand out easily.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
Yanfeng Liu 2023-12-29 14:35:25 +08:00 committed by archer
parent f7fb816235
commit 675f775494
2 changed files with 3 additions and 3 deletions

View file

@ -496,7 +496,7 @@ static int elf_relocateadd(FAR struct elf_loadinfo_s *loadinfo, int relidx,
if (ret == -ESRCH)
{
berr("Section %d reloc %d: "
bwarn("Section %d reloc %d: "
"Undefined symbol[%d] has no name: %d\n",
relidx, i, symidx, ret);
}

View file

@ -76,7 +76,7 @@ static int elf_symname(FAR struct elf_loadinfo_s *loadinfo,
if (sym->st_name == 0)
{
berr("Symbol has no name\n");
bwarn("Symbol has no name\n");
return -ESRCH;
}
@ -292,7 +292,7 @@ int elf_symvalue(FAR struct elf_loadinfo_s *loadinfo, FAR Elf_Sym *sym,
* indicate the nameless symbol.
*/
berr("SHN_UNDEF: Failed to get symbol name: %d\n", ret);
bwarn("SHN_UNDEF: Failed to get symbol name: %d\n", ret);
return ret;
}