summaryrefslogtreecommitdiff
path: root/src/core/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/swap.c')
-rw-r--r--src/core/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/swap.c b/src/core/swap.c
index e41d77aa54..346a5fd712 100644
--- a/src/core/swap.c
+++ b/src/core/swap.c
@@ -410,7 +410,7 @@ static int swap_add_one(
return 0;
fail:
- log_unit_warning(e, "Failed to load swap unit: %s", strerror(-r));
+ log_unit_warning_errno(e, r, "Failed to load swap unit: %m");
if (delete && u)
unit_free(u);