diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-03-03 08:48:11 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2015-04-19 20:40:19 +0200 |
commit | ef008d2f8dc8f7160d8a3d24a15f2fad79ef3242 (patch) | |
tree | 036d3b4c7bc0071f045bc1cb3a54c422dffc1806 /ospfd/ospf_ase.c | |
parent | ec62e1438ece9af0546f9028aa1403f2c84bf177 (diff) | |
download | quagga-ef008d2f8dc8f7160d8a3d24a15f2fad79ef3242.tar.bz2 quagga-ef008d2f8dc8f7160d8a3d24a15f2fad79ef3242.tar.xz |
*: 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 <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_ase.c')
-rw-r--r-- | ospfd/ospf_ase.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_ase.c b/ospfd/ospf_ase.c index 8aedc808..04240c15 100644 --- a/ospfd/ospf_ase.c +++ b/ospfd/ospf_ase.c @@ -679,8 +679,8 @@ ospf_ase_calculate_timer (struct thread *t) quagga_gettime(QUAGGA_CLK_MONOTONIC, &stop_time); - zlog_info ("SPF Processing Time(usecs): External Routes: %ld\n", - (stop_time.tv_sec - start_time.tv_sec)*1000000L+ + zlog_info ("SPF Processing Time(usecs): External Routes: %lld\n", + (stop_time.tv_sec - start_time.tv_sec)*1000000LL+ (stop_time.tv_usec - start_time.tv_usec)); } return 0; |