From 926f67a6d6f86e76d568309262bffdb226ba85ef Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Sun, 11 Dec 2011 19:33:03 -0200 Subject: [PATCH] be less verbose on initstate for unexistent modules. the module may be unloaded, in this case -NOENT is returned but it should not present an error message --- libkmod/libkmod-module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index 96be0cb..dfb694d 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -595,7 +595,7 @@ KMOD_EXPORT int kmod_module_get_initstate(const struct kmod_module *mod) return KMOD_MODULE_BUILTIN; } - ERR(mod->ctx, "could not open '%s': %s\n", + DBG(mod->ctx, "could not open '%s': %s\n", path, strerror(-err)); return err; } -- 2.7.4