mirror of
https://github.com/AuxXxilium/kmod.git
synced 2025-02-05 08:25:31 +07:00
depmod: report failures in loading symbols
Previously, depmod would relegate failures of kmod_module_get_symbols() to debug output, assuming the "error" was simply a lack of symbols. Leave the ENOENT return to debug output, but report anything else as a real error.
This commit is contained in:
parent
c7d5a60d3d
commit
819f79a24d
@ -1542,8 +1542,11 @@ static int depmod_load_symbols(struct depmod *depmod)
|
||||
struct kmod_list *l, *list = NULL;
|
||||
int err = kmod_module_get_symbols(mod->kmod, &list);
|
||||
if (err < 0) {
|
||||
DBG("ignoring %s: no symbols: %s\n",
|
||||
mod->path, strerror(-err));
|
||||
if (err == -ENOENT)
|
||||
DBG("ignoring %s: no symbols\n", mod->path);
|
||||
else
|
||||
ERR("failed to load symbols from %s: %s\n",
|
||||
mod->path, strerror(-err));
|
||||
continue;
|
||||
}
|
||||
kmod_list_foreach(l, list) {
|
||||
|
Loading…
Reference in New Issue
Block a user