bus-wait-for-jobs: fix quiet argument for log_job_error_with_service_result()

The argument 'quiet' is a boolean, not a integrer and not a log level.

Follow-up for 0d91a204cb.
Fixes #40030.
This commit is contained in:
Yu Watanabe
2025-12-10 04:16:21 +09:00
parent ac752f1eff
commit 0fe1de0812
+4 -1
View File
@@ -275,7 +275,10 @@ static int check_wait_response(BusWaitForJobs *d, WaitJobsFlags flags, const cha
log_debug_errno(r, "Failed to get Result property of unit %s, ignoring: %m",
d->name);
log_job_error_with_service_result(d->name, result, priority, extra_args);
log_job_error_with_service_result(
d->name, result,
/* quiet= */ !FLAGS_SET(flags, BUS_WAIT_JOBS_LOG_ERROR),
extra_args);
} else /* Otherwise we just show a generic message. */
log_full(priority, "Job failed. See \"journalctl -xe\" for details.");