From eeedae06ee5c13d225b3fbf2f01bf410846ead2f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 5 Dec 2016 17:53:49 -0500 Subject: [PATCH] pimd: Cleanup debugs for pim_upstream_sg_running In the normal case when we have debugs turned on and the stream is not running, only display one line of output instead of 2. Signed-off-by: Donald Sharp --- pimd/pim_upstream.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c index 2daa91080a..90adf60615 100644 --- a/pimd/pim_upstream.c +++ b/pimd/pim_upstream.c @@ -1447,9 +1447,11 @@ pim_upstream_sg_running (void *arg) { if (PIM_DEBUG_TRACE) { - zlog_debug ("%s: %s old packet count is equal or lastused is greater than 30", - __PRETTY_FUNCTION__, up->sg_str); - zlog_debug ("%s: %ld %ld %lld", __PRETTY_FUNCTION__, up->channel_oil->cc.oldpktcnt, up->channel_oil->cc.pktcnt, up->channel_oil->cc.lastused/100); + zlog_debug ("%s: %s old packet count is equal or lastused is greater than 30, (%ld,%ld,%lld)", + __PRETTY_FUNCTION__, up->sg_str, + up->channel_oil->cc.oldpktcnt, + up->channel_oil->cc.pktcnt, + up->channel_oil->cc.lastused/100); } return; } -- 2.39.5