]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Fix unwrappered debug message
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 24 Aug 2016 13:30:25 +0000 (09:30 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:07 +0000 (20:26 -0500)
When checking with zebra about lastused we were not
protecting a debug message.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_zlookup.c

index 6cf6a6b2f7e83ccbc56a03de77a3fb9d4079b12c..5c17c50609860d43de5ea586d2aa4d4ed075fce6 100644 (file)
@@ -520,7 +520,8 @@ pim_zlookup_sg_statistics (struct channel_oil *c_oil)
 
   stream_get (&lastused, s, sizeof (lastused));
 
-  zlog_debug ("Received %lld for %s", lastused, pim_str_sg_dump (&sg));
+  if (PIM_DEBUG_ZEBRA)
+    zlog_debug ("Received %lld for %s", lastused, pim_str_sg_dump (&sg));
 
   c_oil->cc.lastused = lastused;