chiark / gitweb /
core: use correct argument of type JobResult
[elogind.git] / src / core / job.c
index 5ff95f5c908fa713400fe6a613903d0cc8a0d570..31ab11880ef0fa1a52b4d4c6a9c628c6d8a56928 100644 (file)
@@ -821,7 +821,7 @@ int job_finish_and_invalidate(Job *j, JobResult result, bool recursive) {
                 log_struct(LOG_NOTICE,
                            "UNIT=%s", u->id,
                            "JOB_TYPE=%s", job_type_to_string(t),
                 log_struct(LOG_NOTICE,
                            "UNIT=%s", u->id,
                            "JOB_TYPE=%s", job_type_to_string(t),
-                           "JOB_RESULT=%s", job_result_to_string(t),
+                           "JOB_RESULT=%s", job_result_to_string(result),
                            "Job %s/%s failed with result '%s'.",
                            u->id,
                            job_type_to_string(t),
                            "Job %s/%s failed with result '%s'.",
                            u->id,
                            job_type_to_string(t),