anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0414-manager-219-needs-u-id-in-log_unit_debug.patch

c79076
From f5bf6f4c0d1857ce3c8a68e862e29ab7fb6684ee Mon Sep 17 00:00:00 2001
c79076
From: Lukas Nykryn <lnykryn@redhat.com>
c79076
Date: Fri, 7 Oct 2016 14:05:40 +0200
c79076
Subject: [PATCH] manager: 219 needs u->id in log_unit_debug
c79076
c79076
RHEL-only
c79076
Related: #1381573
c79076
---
c79076
 src/core/manager.c | 2 +-
c79076
 1 file changed, 1 insertion(+), 1 deletion(-)
c79076
c79076
diff --git a/src/core/manager.c b/src/core/manager.c
c79076
index 27f032b..6d045fd 100644
c79076
--- a/src/core/manager.c
c79076
+++ b/src/core/manager.c
c79076
@@ -1637,7 +1637,7 @@ static void manager_invoke_notify_message(Manager *m, Unit *u, pid_t pid, const
c79076
                 x = cescape(buf);
c79076
                 if (x)
c79076
                         y = ellipsize(x, 20, 90);
c79076
-                log_unit_debug(u, "Got notification message \"%s\", ignoring.", strnull(y));
c79076
+                log_unit_debug(u->id, "Got notification message \"%s\", ignoring.", strnull(y));
c79076
         }
c79076
 }
c79076