dcavalca / rpms / systemd

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