]> git.puffer.fish Git - mirror/frr.git/commitdiff
[ospfd] suppres mostly uninteresting debug message unless debug is set
authorPaul Jakma <paul.jakma@sun.com>
Thu, 15 Jun 2006 11:41:19 +0000 (11:41 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Thu, 15 Jun 2006 11:41:19 +0000 (11:41 +0000)
2006-05-30 Paul Jakma <paul.jakma@sun.com>

* ospf_packet.c: (ospf_read) Debug message about packets
  received on unenabled interfaces should be conditional on
  debug being set.

ospfd/ChangeLog
ospfd/ospf_packet.c

index 4749618d2f5031fd2037167eafb685379bc4ed14..32b39aae51269ca0ee5a7c0460cfae9787ae85bd 100644 (file)
@@ -1,3 +1,9 @@
+2006-05-30 Paul Jakma <paul.jakma@sun.com>
+
+       * ospf_packet.c: (ospf_read) Debug message about packets
+         received on unenabled interfaces should be conditional on
+         debug being set.
+
 2006-05-13 Paul Jakma <paul.jakma@sun.com>
 
        * ospf_lsa.c: (ospf_translated_nssa_refresh) fix the sanity
index d6aca719862452271b25eabdcb1d1974f7874cc3..a842ca6856e2a32e70a33e12a7b78f06dfb063b4 100644 (file)
@@ -2363,9 +2363,10 @@ ospf_read (struct thread *thread)
     {
       if ((oi = ospf_associate_packet_vl (ospf, ifp, iph, ospfh)) == NULL)
         {
-          zlog_debug ("Packet from [%s] received on link %s"
-                     " but no ospf_interface",
-                     inet_ntoa (iph->ip_src), ifp->name);
+          if (IS_DEBUG_OSPF_EVENT)
+            zlog_debug ("Packet from [%s] received on link %s"
+                        " but no ospf_interface",
+                        inet_ntoa (iph->ip_src), ifp->name);
           return 0;
         }
     }