chiark / gitweb /
treewide: auto-convert the simple cases to log_*_errno()
[elogind.git] / src / notify / notify.c
index a0f757a2523abde87f04e906092d621330ff45c5..ceb235c1fba2452dcc84346ff496bc889106d11a 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;
         }