summaryrefslogtreecommitdiff
path: root/sharpd/sharp_vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sharpd/sharp_vty.c')
-rw-r--r--sharpd/sharp_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c
index 31608dcdb8..a7552547e9 100644
--- a/sharpd/sharp_vty.c
+++ b/sharpd/sharp_vty.c
@@ -145,12 +145,12 @@ DEFPY (install_routes_data_dump,
struct timeval r;
timersub(&sg.r.t_end, &sg.r.t_start, &r);
- vty_out(vty, "Prefix: %s Total: %u %u %u Time: %ld.%ld\n",
+ vty_out(vty, "Prefix: %s Total: %u %u %u Time: %jd.%ld\n",
prefix2str(&sg.r.orig_prefix, buf, sizeof(buf)),
sg.r.total_routes,
sg.r.installed_routes,
sg.r.removed_routes,
- r.tv_sec, r.tv_usec);
+ (intmax_t)r.tv_sec, (long)r.tv_usec);
return CMD_SUCCESS;
}