anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone
1ff636
From 5efee680aa8f55c825be62e2e714f88d5c88066b Mon Sep 17 00:00:00 2001
1ff636
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
1ff636
Date: Sun, 15 Mar 2015 12:12:19 -0400
1ff636
Subject: [PATCH] core: remove useless debug message
1ff636
1ff636
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
1ff636
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
1ff636
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
1ff636
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
1ff636
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
1ff636
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
1ff636
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
1ff636
1ff636
(cherry picked from commit cc3bc3e6203e0c615e31b8b68796362e1385f28a)
1ff636
---
1ff636
 src/core/manager.c | 3 ++-
1ff636
 1 file changed, 2 insertions(+), 1 deletion(-)
1ff636
1ff636
diff --git a/src/core/manager.c b/src/core/manager.c
Pablo Greco 48fc63
index 203a6a0a1a..7483a96ec6 100644
1ff636
--- a/src/core/manager.c
1ff636
+++ b/src/core/manager.c
1ff636
@@ -844,7 +844,8 @@ static unsigned manager_dispatch_gc_queue(Manager *m) {
1ff636
 
1ff636
                 if (u->gc_marker == gc_marker + GC_OFFSET_BAD ||
1ff636
                     u->gc_marker == gc_marker + GC_OFFSET_UNSURE) {
1ff636
-                        log_unit_debug(u->id, "Collecting %s", u->id);
1ff636
+                        if (u->id)
1ff636
+                                log_unit_debug(u->id, "Collecting %s", u->id);
1ff636
                         u->gc_marker = gc_marker + GC_OFFSET_BAD;
1ff636
                         unit_add_to_cleanup_queue(u);
1ff636
                 }