From c89c05dd04d097bd8213125a42d67204bb681de5 Mon Sep 17 00:00:00 2001 From: hasso Date: Sun, 4 Sep 2005 21:36:36 +0000 Subject: * *.c: Try to be less verbose by default (without any debug options on). * isis_lsp.c (lsp_build_nonpseudo): Use stream_reset() instead of touching endp directly. * isis_lsp.c (lsp_build_pseudo): Ditto. --- isisd/isis_csm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'isisd/isis_csm.c') diff --git a/isisd/isis_csm.c b/isisd/isis_csm.c index 58a0b295..80d0c906 100644 --- a/isisd/isis_csm.c +++ b/isisd/isis_csm.c @@ -77,8 +77,8 @@ isis_csm_state_change (int event, struct isis_circuit *circuit, void *arg) int old_state; old_state = circuit ? circuit->state : C_STATE_NA; - - zlog_debug ("CSM_EVENT: %s", EVENT2STR (event)); + if (isis->debugs & DEBUG_EVENTS) + zlog_debug ("CSM_EVENT: %s", EVENT2STR (event)); switch (old_state) { @@ -178,8 +178,9 @@ isis_csm_state_change (int event, struct isis_circuit *circuit, void *arg) zlog_warn ("Invalid circuit state %d", old_state); } - zlog_debug ("CSM_STATE_CHANGE: %s -> %s ", STATE2STR (old_state), - circuit ? STATE2STR (circuit->state) : STATE2STR (C_STATE_NA)); + if (isis->debugs & DEBUG_EVENTS) + zlog_debug ("CSM_STATE_CHANGE: %s -> %s ", STATE2STR (old_state), + circuit ? STATE2STR (circuit->state) : STATE2STR (C_STATE_NA)); return circuit; } -- cgit v1.2.1