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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2016-12-05 17:53:49 -05:00
parent 3197cb1eb5
commit eeedae06ee

View 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;
}