Lines Matching refs:result

574 static const char* job_done_message_format(Unit *u, JobType t, JobResult result) {  in job_done_message_format()  argument
608 if (t == JOB_START && result == JOB_DONE && !u->condition_result) in job_done_message_format()
614 format = formats->finished_job(u, t, result); in job_done_message_format()
619 … format = (t == JOB_START ? formats->finished_start_job : formats->finished_stop_job)[result]; in job_done_message_format()
627 return generic_finished_start_job[result]; in job_done_message_format()
630 return generic_finished_stop_job[result]; in job_done_message_format()
632 return generic_finished_reload_job[result]; in job_done_message_format()
634 return generic_finished_verify_active_job[result]; in job_done_message_format()
657 static const char* job_done_mid(JobType type, JobResult result) { in job_done_mid() argument
660 if (result == JOB_DONE) in job_done_mid()
677 static void job_emit_done_message(Unit *u, uint32_t job_id, JobType t, JobResult result) { in job_emit_done_message() argument
685 if (!unit_log_level_test(u, job_done_messages[result].log_level)) in job_emit_done_message()
688 format = job_done_message_format(u, t, result); in job_emit_done_message()
694 const char *status = job_done_messages[result].word; in job_emit_done_message()
698 if (t == JOB_START && result == JOB_DONE && !u->condition_result) { in job_emit_done_message()
709 …const char *mid = job_done_mid(t, result); /* mid may be NULL. log_unit_struct() will ignore it. … in job_emit_done_message()
711 c = t == JOB_START && result == JOB_DONE ? unit_find_failed_condition(u) : NULL; in job_emit_done_message()
718 job_done_messages[result].log_level, in job_emit_done_message()
723 "JOB_RESULT=%s", job_result_to_string(result), in job_emit_done_message()
729 job_done_messages[result].log_level, in job_emit_done_message()
737 "JOB_RESULT=%s", job_result_to_string(result), in job_emit_done_message()
744 log_unit_struct(u, job_done_messages[result].log_level, in job_emit_done_message()
748 "JOB_RESULT=%s", job_result_to_string(result), in job_emit_done_message()
757 status = strjoina(job_done_messages[result].color, in job_emit_done_message()
763 result == JOB_DONE ? STATUS_TYPE_NORMAL : STATUS_TYPE_NOTICE, in job_emit_done_message()
767 if (t == JOB_START && result == JOB_FAILED) { in job_emit_done_message()
930 int job_finish_and_invalidate(Job *j, JobResult result, bool recursive, bool already) { in job_finish_and_invalidate() argument
941 j->result = result; in job_finish_and_invalidate()
944 j->id, u->id, job_type_to_string(t), job_result_to_string(result)); in job_finish_and_invalidate()
948 job_emit_done_message(u, j->id, t, result); in job_finish_and_invalidate()
951 if (result == JOB_DONE && t == JOB_RESTART) { in job_finish_and_invalidate()
963 if (IN_SET(result, JOB_FAILED, JOB_INVALID)) in job_finish_and_invalidate()
970 if (result != JOB_DONE && recursive) { in job_finish_and_invalidate()
994 if (result == JOB_DONE && recursive && in job_finish_and_invalidate()
1001 if (IN_SET(result, JOB_TIMEOUT, JOB_DEPENDENCY)) { in job_finish_and_invalidate()
1004 "JOB_RESULT=%s", job_result_to_string(result), in job_finish_and_invalidate()
1008 job_result_to_string(result))); in job_finish_and_invalidate()