From ef008d2f8dc8f7160d8a3d24a15f2fad79ef3242 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 3 Mar 2015 08:48:11 +0100 Subject: *: use long long to print time_t Since we can't assume time_t to be long, int, or even long long, this consistently uses %lld/long long (or %llu/unsigned long long in a few cases) to print time_t/susecond_t values. This should fix a bunch of warnings, on NetBSD in particular. (Unfortunately, there seems to be no "PRId64" style printing macro for time_t...) Signed-off-by: David Lamparter --- isisd/isis_spf.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'isisd/isis_spf.c') diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c index fd93efa6..a4cbba6b 100644 --- a/isisd/isis_spf.c +++ b/isisd/isis_spf.c @@ -1456,8 +1456,8 @@ isis_spf_schedule6 (struct isis_area *area, int level) assert (area->is_type & level); if (isis->debugs & DEBUG_SPF_EVENTS) - zlog_debug ("ISIS-Spf (%s) L%d SPF schedule called, lastrun %d sec ago", - area->area_tag, level, diff); + zlog_debug ("ISIS-Spf (%s) L%d SPF schedule called, lastrun %lld sec ago", + area->area_tag, level, (long long)diff); if (spftree->pending) return ISIS_OK; @@ -1476,8 +1476,9 @@ isis_spf_schedule6 (struct isis_area *area, int level) area->min_spf_interval[1] - diff); 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 %lld sec from now", + area->area_tag, level, + (long long)(area->min_spf_interval[level-1] - diff)); spftree->pending = 1; -- cgit v1.2.3