]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "kmod-setup: don't print warning on -ENOSYS"
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 1 Jul 2015 10:54:58 +0000 (12:54 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 1 Jul 2015 10:58:03 +0000 (12:58 +0200)
This partially reverts commit 78d298bbc57e412574ea35e6e66f562d97fd9ebc.
The changed coding-style is kept, but the ENOENT->ENOSYS conversion is
reverted.

kmod was fixed upstream to no longer return ENOSYS. Also see:
    https://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/?id=114ec87c85c35a2bd3682f9f891e494127be6fb5

The kmod fix is marked for backport, so no reason to bump the kmod
version we depend on.

src/core/kmod-setup.c

index e7a6bdc8c4ff6489cdf4ebb1a15672628f35a9cd..fc6d2f4acb95ba15b2169c1ae391dfbb2966e33e 100644 (file)
@@ -116,7 +116,7 @@ int kmod_setup(void) {
                 else if (r == KMOD_PROBE_APPLY_BLACKLIST)
                         log_info("Module '%s' is blacklisted", kmod_module_get_name(mod));
                 else {
-                        bool print_warning = kmod_table[i].warn_if_unavailable || (r < 0 && r != -ENOSYS);
+                        bool print_warning = kmod_table[i].warn_if_unavailable || (r < 0 && r != -ENOENT);
 
                         log_full_errno(print_warning ? LOG_WARNING : LOG_DEBUG, r,
                                        "Failed to insert module '%s': %m", kmod_module_get_name(mod));