]> git.puffer.fish Git - matthieu/frr.git/commitdiff
isisd: fix debug message
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 6 Dec 2017 21:23:55 +0000 (19:23 -0200)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Tue, 12 Dec 2017 12:43:54 +0000 (10:43 -0200)
Show the actual timer instead of doing the arithmetic operation again.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
isisd/isis_spf.c

index 3008fb6a1eb1805c3b3e7317381f2080a6efd12e..cedffd802a4a1bd71aa04c13929a014ff0d2522c 100644 (file)
@@ -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;
 }