summaryrefslogtreecommitdiff
path: root/src/core/loopback-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/loopback-setup.c')
-rw-r--r--src/core/loopback-setup.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/loopback-setup.c b/src/core/loopback-setup.c
index 6ac1fffd75..ca8ac4ea61 100644
--- a/src/core/loopback-setup.c
+++ b/src/core/loopback-setup.c
@@ -93,13 +93,11 @@ int loopback_setup(void) {
r = start_loopback(rtnl);
if (r == -EPERM) {
if (check_loopback() < 0) {
- log_warning("Failed to configure loopback device: %s",
- strerror(EPERM));
+ log_warning_errno(EPERM, "Failed to configure loopback device: %m");
return -EPERM;
}
} else if (r < 0) {
- log_warning("Failed to configure loopback device: %s",
- strerror(-r));
+ log_warning_errno(r, "Failed to configure loopback device: %m");
return r;
}