summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index be9d0a60e1..8c25819a12 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1185,7 +1185,7 @@ static int do_switch_root(const char *switch_root) {
}
if (chroot(".") < 0)
- log_warning("Failed to change root, ignoring: %s", strerror(-r));
+ log_warning("Failed to change root, ignoring: %m");
/* FIXME: remove old root */