From: Dave Reisner Date: Mon, 7 May 2012 23:41:42 +0000 (-0400) Subject: depmod: report failures in loading symbols X-Git-Tag: v9~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=819f79a24d58e3c8429f1631df2f8f85a2f95d4a;p=thirdparty%2Fkmod.git 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. --- diff --git a/tools/kmod-depmod.c b/tools/kmod-depmod.c index e89dff6f..bceb4075 100644 --- a/tools/kmod-depmod.c +++ b/tools/kmod-depmod.c @@ -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) {