be less verbose on initstate for unexistent modules.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sun, 11 Dec 2011 21:33:03 +0000 (19:33 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sun, 11 Dec 2011 22:58:22 +0000 (20:58 -0200)
the module may be unloaded, in this case -NOENT is returned but it
should not present an error message

libkmod/libkmod-module.c

index 96be0cb..dfb694d 100644 (file)
@@ -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;
        }