daandemeyer / rpms / systemd

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