anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0451-service-log_unit-consumes-id-of-unit-not-a-unit.patch

923a60
From 01cfafc9f1d79f751405239046db827b6eb73f1e Mon Sep 17 00:00:00 2001
923a60
From: Lukas Nykryn <lnykryn@redhat.com>
923a60
Date: Mon, 20 Feb 2017 12:32:42 +0100
923a60
Subject: [PATCH] service: log_unit consumes id of unit not a unit
923a60
923a60
rhel-only
923a60
Related: #1421658
923a60
---
923a60
 src/core/service.c | 2 +-
923a60
 1 file changed, 1 insertion(+), 1 deletion(-)
923a60
923a60
diff --git a/src/core/service.c b/src/core/service.c
923a60
index 84e00573f3..3bd6c33381 100644
923a60
--- a/src/core/service.c
923a60
+++ b/src/core/service.c
923a60
@@ -1567,7 +1567,7 @@ static void service_enter_start(Service *s) {
923a60
                         /* There's no command line configured for the main command? Hmm, that is strange. This can only
923a60
                          * happen if the configuration changes at runtime. In this case, let's enter a failure
923a60
                          * state. */
923a60
-                        log_unit_error(UNIT(s), "There's no 'start' task anymore we could start: %m");
923a60
+                        log_unit_error(UNIT(s)->id, "There's no 'start' task anymore we could start: %m");
923a60
                         r = -ENXIO;
923a60
                         goto fail;
923a60
                 }