summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-06-15 11:41:19 +0000
committerPaul Jakma <paul.jakma@sun.com>2006-06-15 11:41:19 +0000
commit88871b1d1ea8150ddf3d8f66fe77323770ba0f9f (patch)
tree8f25f719d120d12a9f333000064ca356563b4387
parent1602a71d7a64395254e175c5c417fa593647b995 (diff)
[ospfd] suppres mostly uninteresting debug message unless debug is set
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.
-rw-r--r--ospfd/ChangeLog6
-rw-r--r--ospfd/ospf_packet.c7
2 files changed, 10 insertions, 3 deletions
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog
index 4749618d..32b39aae 100644
--- a/ospfd/ChangeLog
+++ b/ospfd/ChangeLog
@@ -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
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index d6aca719..a842ca68 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -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;
}
}