summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-06-11 12:13:03 +0200
committerLennart Poettering <lennart@poettering.net>2015-06-11 12:13:58 +0200
commitd814f9904bb9705070dde8458464b8afe6cfbb22 (patch)
tree5d2ad55d76fe3bbe43ae5386cac851228b449b53 /src
parentde1d4f9b5c6345f63edd46f643485eca909995bf (diff)
kmod-setup: when we fail to load a kmod, log the error cause
(Also, downgrade message from LOG_ERROR to LOG_WARNING, after all we don't care much and just proceed)
Diffstat (limited to 'src')
-rw-r--r--src/core/kmod-setup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c
index cf543c81a3..d956f9b190 100644
--- a/src/core/kmod-setup.c
+++ b/src/core/kmod-setup.c
@@ -118,8 +118,9 @@ int kmod_setup(void) {
else if (r == KMOD_PROBE_APPLY_BLACKLIST)
log_info("Module '%s' is blacklisted", kmod_module_get_name(mod));
else
- log_full((kmod_table[i].warn_if_unavailable || (r < 0 && r != -ENOENT)) ? LOG_ERR : LOG_DEBUG,
- "Failed to insert module '%s'", kmod_module_get_name(mod));
+ log_full_errno((kmod_table[i].warn_if_unavailable || (r < 0 && r != -ENOENT)) ? LOG_WARNING : LOG_DEBUG,
+ r,
+ "Failed to insert module '%s': %m", kmod_module_get_name(mod));
kmod_module_unref(mod);
}