From 013b29d7eaa81505b93efdd34576f4fe1ef21955 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Wed, 6 Dec 2017 19:23:55 -0200 Subject: [PATCH] isisd: fix debug message Show the actual timer instead of doing the arithmetic operation again. Signed-off-by: Rafael Zalamena --- isisd/isis_spf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c index 3008fb6a1e..cedffd802a 100644 --- a/isisd/isis_spf.c +++ b/isisd/isis_spf.c @@ -1435,9 +1435,8 @@ int isis_spf_schedule(struct isis_area *area, int level) timer, &area->spf_timer[level - 1]); if (isis->debugs & DEBUG_SPF_EVENTS) - zlog_debug("ISIS-Spf (%s) L%d SPF scheduled %d sec from now", - area->area_tag, level, - area->min_spf_interval[level - 1] - diff); + zlog_debug("ISIS-Spf (%s) L%d SPF scheduled %ld sec from now", + area->area_tag, level, timer); return ISIS_OK; }