]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: Make received packet zlog_err a zlog_debug
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 29 Jun 2016 11:42:44 +0000 (07:42 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 29 Jun 2016 11:44:42 +0000 (07:44 -0400)
When receiving packets and the parse fails
a zlog_err is generated.  This should be
protected by a debug.

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

index 60507970d9c33874047b70710be62d811fd9c68c..eedbc116d8f0e699f98de9fa076ae65189511456 100644 (file)
@@ -349,8 +349,9 @@ static int pim_sock_read(struct thread *t)
 
   int fail = pim_pim_packet(ifp, buf, len);
   if (fail) {
-    zlog_warn("%s: pim_pim_packet() return=%d",
-              __PRETTY_FUNCTION__, fail);
+    if (PIM_DEBUG_PIM_PACKETS)
+      zlog_debug("%s: pim_pim_packet() return=%d",
+                __PRETTY_FUNCTION__, fail);
     goto done;
   }