]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: Cleanup debugs for pim_upstream_sg_running
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 5 Dec 2016 22:53:49 +0000 (17:53 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:18 +0000 (20:26 -0500)
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 <sharpd@cumulusnetworks.com>
pimd/pim_upstream.c

index 2daa91080a97fe11d89df0224f4a6850efeb1116..90adf606156979dd4b90aa4cda539bb0daad61b1 100644 (file)
@@ -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;
     }