From: Lucas De Marchi Date: Thu, 1 Mar 2012 17:04:29 +0000 (-0300) Subject: Downgrade log message: refcnt file may not exist X-Git-Tag: v6~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c5f057c7c5924ee3121bf1abbdca59544f8e4fc;p=thirdparty%2Fkmod.git Downgrade log message: refcnt file may not exist If kernel doesn't have support to unload modules, /sys/module//refcnt will not exist and that's ok. Reported by: Sven Anders --- diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index d9934a37..199dc8d7 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -1749,7 +1749,7 @@ KMOD_EXPORT int kmod_module_get_refcnt(const struct kmod_module *mod) fd = open(path, O_RDONLY|O_CLOEXEC); if (fd < 0) { err = -errno; - ERR(mod->ctx, "could not open '%s': %s\n", + DBG(mod->ctx, "could not open '%s': %s\n", path, strerror(errno)); return err; }