ryantimwilson / rpms / systemd

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