chiark / gitweb /
test: add integration test for systemd-sysv-generator
[elogind.git] / src / notify / notify.c
index a0f757a2523abde87f04e906092d621330ff45c5..5bf901ec6a28b8c22d1acf0f1cbbc5cf54efc27d 100644 (file)
@@ -193,7 +193,7 @@ int main(int argc, char* argv[]) {
 
         r = sd_pid_notify(arg_pid, false, n);
         if (r < 0) {
-                log_error("Failed to notify init system: %s", strerror(-r));
+                log_error_errno(r, "Failed to notify init system: %m");
                 goto finish;
         }