summaryrefslogtreecommitdiff
path: root/sharpd/sharp_zebra.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2019-06-11 08:33:48 -0400
committerGitHub <noreply@github.com>2019-06-11 08:33:48 -0400
commit6aba4eeaecdb0307fda736d2bec968e5da0d5dfb (patch)
tree8d7dd5fec1420078022e8964156259e4f79a3ad2 /sharpd/sharp_zebra.c
parent51e6f92ec6ee1b265873c56bc11e7ff915dff155 (diff)
parent051a0be4b2ec9cba419272df0f9c3be7f89f065b (diff)
Merge pull request #4482 from opensourcerouting/warnings-20190606
*: fix some dumb printf format warnings
Diffstat (limited to 'sharpd/sharp_zebra.c')
-rw-r--r--sharpd/sharp_zebra.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c
index 7447076993..cd6f956580 100644
--- a/sharpd/sharp_zebra.c
+++ b/sharpd/sharp_zebra.c
@@ -212,8 +212,8 @@ static int route_notify_owner(ZAPI_CALLBACK_ARGS)
if (sg.r.total_routes == sg.r.installed_routes) {
monotime(&sg.r.t_end);
timersub(&sg.r.t_end, &sg.r.t_start, &r);
- zlog_debug("Installed All Items %ld.%ld", r.tv_sec,
- (long int)r.tv_usec);
+ zlog_debug("Installed All Items %jd.%ld",
+ (intmax_t)r.tv_sec, (long)r.tv_usec);
handle_repeated(true);
}
break;
@@ -228,8 +228,8 @@ static int route_notify_owner(ZAPI_CALLBACK_ARGS)
if (sg.r.total_routes == sg.r.removed_routes) {
monotime(&sg.r.t_end);
timersub(&sg.r.t_end, &sg.r.t_start, &r);
- zlog_debug("Removed all Items %ld.%ld", r.tv_sec,
- (long int)r.tv_usec);
+ zlog_debug("Removed all Items %jd.%ld",
+ (intmax_t)r.tv_sec, (long)r.tv_usec);
handle_repeated(false);
}
break;