|
|
17b0f1 |
From 18b5e1630c73438a262fea9dd76bc3e67b250335 Mon Sep 17 00:00:00 2001
|
|
|
17b0f1 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
|
17b0f1 |
Date: Sat, 11 Apr 2015 19:39:30 -0400
|
|
|
17b0f1 |
Subject: [PATCH] bus-util: add articles to explanation messages
|
|
|
17b0f1 |
|
|
|
17b0f1 |
We are talking about one member of a group of things (resource limits, signals,
|
|
|
17b0f1 |
timeouts), without specifying which one. An indenfinite article is in order.
|
|
|
17b0f1 |
|
|
|
17b0f1 |
When we are talking about the control process, it's a specific one, so the
|
|
|
17b0f1 |
definite article is used.
|
|
|
17b0f1 |
|
|
|
17b0f1 |
Cherry-picked from: a61cc46
|
|
|
17b0f1 |
Related: #1016680
|
|
|
17b0f1 |
---
|
|
|
17b0f1 |
src/libsystemd/sd-bus/bus-util.c | 17 ++++++++---------
|
|
|
17b0f1 |
1 file changed, 8 insertions(+), 9 deletions(-)
|
|
|
17b0f1 |
|
|
|
17b0f1 |
diff --git a/src/libsystemd/sd-bus/bus-util.c b/src/libsystemd/sd-bus/bus-util.c
|
|
|
17b0f1 |
index fff00d9f93..017fbaf2a3 100644
|
|
|
17b0f1 |
--- a/src/libsystemd/sd-bus/bus-util.c
|
|
|
17b0f1 |
+++ b/src/libsystemd/sd-bus/bus-util.c
|
|
|
17b0f1 |
@@ -1714,13 +1714,13 @@ static int bus_job_get_service_result(BusWaitForJobs *d, char **result) {
|
|
|
17b0f1 |
static const struct {
|
|
|
17b0f1 |
const char *result, *explanation;
|
|
|
17b0f1 |
} explanations [] = {
|
|
|
17b0f1 |
- { "resources", "configured resource limit was exceeded" },
|
|
|
17b0f1 |
- { "timeout", "timeout was exceeded" },
|
|
|
17b0f1 |
- { "exit-code", "control process exited with error code" },
|
|
|
17b0f1 |
- { "signal", "fatal signal was delivered to the control process" },
|
|
|
17b0f1 |
- { "core-dump", "fatal signal was delivered to the control process. Core dumped" },
|
|
|
17b0f1 |
- { "watchdog", "service failed to send watchdog ping" },
|
|
|
17b0f1 |
- { "start-limit", "start of the service was attempted too often too quickly" }
|
|
|
17b0f1 |
+ { "resources", "a configured resource limit was exceeded" },
|
|
|
17b0f1 |
+ { "timeout", "a timeout was exceeded" },
|
|
|
17b0f1 |
+ { "exit-code", "the control process exited with error code" },
|
|
|
17b0f1 |
+ { "signal", "a fatal signal was delivered to the control process" },
|
|
|
17b0f1 |
+ { "core-dump", "a fatal signal was delivered causing the control process to dump core" },
|
|
|
17b0f1 |
+ { "watchdog", "the service failed to send watchdog ping" },
|
|
|
17b0f1 |
+ { "start-limit", "start of the service was attempted too often" }
|
|
|
17b0f1 |
};
|
|
|
17b0f1 |
|
|
|
17b0f1 |
static void log_job_error_with_service_result(const char* service, const char *result) {
|
|
|
17b0f1 |
@@ -1748,8 +1748,7 @@ static void log_job_error_with_service_result(const char* service, const char *r
|
|
|
17b0f1 |
|
|
|
17b0f1 |
/* For some results maybe additional explanation is required */
|
|
|
17b0f1 |
if (streq_ptr(result, "start-limit"))
|
|
|
17b0f1 |
- log_info("To force a start please invoke \"systemctl reset-failed %s\" followed by \"systemctl start %s\" again.",
|
|
|
17b0f1 |
- strna(service_shell_quoted),
|
|
|
17b0f1 |
+ log_info("To force a start use \"systemctl reset-failed %1$s\" followed by \"systemctl start %1$s\" again.",
|
|
|
17b0f1 |
strna(service_shell_quoted));
|
|
|
17b0f1 |
}
|
|
|
17b0f1 |
|