From 3aa8d5f9893c182eb27f0f6ab354a77edbf1b9f0 Mon Sep 17 00:00:00 2001 From: ajs Date: Sat, 11 Dec 2004 18:00:06 +0000 Subject: 2004-12-11 Andrew J. Schorr * ospf_packet.c: (ospf_db_desc) Should be static, not global. (ospf_hello,ospf_db_desc,ospf_ls_upd,ospf_ls_ack) Improve warning messages to include identifying information (e.g. router id). * ospf_nsm.c: (nsm_change_state) Improve info message to include router id and state names. --- ospfd/ospf_nsm.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ospfd/ospf_nsm.c') diff --git a/ospfd/ospf_nsm.c b/ospfd/ospf_nsm.c index e77546aa..ce84624b 100644 --- a/ospfd/ospf_nsm.c +++ b/ospfd/ospf_nsm.c @@ -689,7 +689,7 @@ nsm_change_state (struct ospf_neighbor *nbr, int state) /* One of the neighboring routers changes to/from the FULL state. */ if ((old_state != NSM_Full && state == NSM_Full) || (old_state == NSM_Full && state != NSM_Full)) - { + { if (state == NSM_Full) { oi->full_nbrs++; @@ -726,8 +726,11 @@ nsm_change_state (struct ospf_neighbor *nbr, int state) ospf_ls_retransmit_clear (nbr); } - zlog_info ("nsm_change_state(): " - "scheduling new router-LSA origination"); + zlog_info ("nsm_change_state(%s, %s -> %s): " + "scheduling new router-LSA origination", + inet_ntoa (nbr->router_id), + LOOKUP(ospf_nsm_state_msg, old_state), + LOOKUP(ospf_nsm_state_msg, state)); ospf_router_lsa_timer_add (oi->area); -- cgit v1.2.1