diff options
author | paul <paul> | 2006-06-15 11:41:19 +0000 |
---|---|---|
committer | paul <paul> | 2006-06-15 11:41:19 +0000 |
commit | 02c4efcb9efc7df2988f27b009444aeec0815abc (patch) | |
tree | a5983cbc1dbee12f0ab9f08905df0a5057e285f8 /ospfd/ospf_packet.c | |
parent | 07c09bce5912f0f9001b7bd68ce634620454abc4 (diff) | |
download | quagga-02c4efcb9efc7df2988f27b009444aeec0815abc.tar.bz2 quagga-02c4efcb9efc7df2988f27b009444aeec0815abc.tar.xz |
[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.
Diffstat (limited to 'ospfd/ospf_packet.c')
-rw-r--r-- | ospfd/ospf_packet.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; } } |