chiark / gitweb /
treewide: auto-convert the simple cases to log_*_errno()
[elogind.git] / src / console / consoled.c
index b0c9eda1acb26cc7cb47fb0661635cf076dc7d4b..f76a357c97fbab4f3bb4d8b391a1746323177617 100644 (file)
@@ -45,7 +45,7 @@ int main(int argc, char *argv[]) {
 
         r = manager_new(&m);
         if (r < 0) {
-                log_error("Could not create manager: %s", strerror(-r));
+                log_error_errno(-r, "Could not create manager: %m");
                 goto out;
         }
 
@@ -55,7 +55,7 @@ int main(int argc, char *argv[]) {
 
         r = manager_run(m);
         if (r < 0) {
-                log_error("Cannot run manager: %s", strerror(-r));
+                log_error_errno(-r, "Cannot run manager: %m");
                 goto out;
         }