diff options
author | paul <paul> | 2003-04-05 19:34:32 +0000 |
---|---|---|
committer | paul <paul> | 2003-04-05 19:34:32 +0000 |
commit | 1cc8f7624c3fad90196d566b46f03ab4e88f7d6b (patch) | |
tree | 57e972ef7bae35f15f933af0cb67c48c4264627f /ospfd/ospf_lsa.c | |
parent | 020709f9939c542e96b12f06522ad5e33d8cf445 (diff) | |
download | quagga-1cc8f7624c3fad90196d566b46f03ab4e88f7d6b.tar.bz2 quagga-1cc8f7624c3fad90196d566b46f03ab4e88f7d6b.tar.xz |
Add tests for debug enabled to PtMP LSA creation functions
Diffstat (limited to 'ospfd/ospf_lsa.c')
-rw-r--r-- | ospfd/ospf_lsa.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c index 9c81327e..d0cf56cd 100644 --- a/ospfd/ospf_lsa.c +++ b/ospfd/ospf_lsa.c @@ -615,7 +615,8 @@ lsa_link_ptomp_set (struct stream *s, struct ospf_interface *oi) link_info_set (s, id, mask, LSA_LINK_TYPE_STUB, 0, 0); links++; - zlog_info ("PointToMultipoint: running ptomultip_set"); + if (IS_DEBUG_OSPF (lsa, LSA_GENERATE)) + zlog_info ("PointToMultipoint: running ptomultip_set"); /* Search neighbor, */ for (rn = route_top (oi->nbrs); rn; rn = route_next (rn)) @@ -628,8 +629,9 @@ lsa_link_ptomp_set (struct stream *s, struct ospf_interface *oi) link_info_set (s, nbr->router_id, oi->address->u.prefix4, LSA_LINK_TYPE_POINTOPOINT, 0, oi->output_cost); links++; - zlog_info ("PointToMultipoint: set link to %s", - inet_ntoa(oi->address->u.prefix4)); + if (IS_DEBUG_OSPF (lsa, LSA_GENERATE)) + zlog_info ("PointToMultipoint: set link to %s", + inet_ntoa(oi->address->u.prefix4)); } return links; |