chiark / gitweb /
unit: introduce RequiredBy= setting in [Install], to complement WantedBy=
[elogind.git] / src / core / main.c
index be9d0a60e1ce49d11f8eebba2d834b038d406bea..8c25819a120e1870cad9ea84dff23d2316487a11 100644 (file)
@@ -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 */