[master] 176ead9 Fix format string warnings
Federico G. Schwindt
fgsch at lodoss.net
Mon Dec 14 20:16:11 CET 2015
commit 176ead9ce93db22444824056fe6bb32739e41c1a
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Mon Dec 14 18:49:17 2015 +0000
Fix format string warnings
diff --git a/bin/varnishstat/varnishstat_curses.c b/bin/varnishstat/varnishstat_curses.c
index 3dd4230..1c90652 100644
--- a/bin/varnishstat/varnishstat_curses.c
+++ b/bin/varnishstat/varnishstat_curses.c
@@ -540,7 +540,7 @@ static void
print_duration(WINDOW *w, time_t t)
{
- wprintw(w, "%4d+%02d:%02d:%02d",
+ wprintw(w, "%4lu+%02lu:%02lu:%02lu",
t / 86400, (t % 86400) / 3600, (t % 3600) / 60, t % 60);
}
@@ -790,8 +790,8 @@ draw_line_bitmap(WINDOW *w, int y, int x, int X, struct pt *pt)
case COL_VAL:
if (X - x < COLW)
return;
- mvwprintw(w, y, x, " %010.10jx",
- (pt->cur >> 24) & 0xffffffffffLL);
+ mvwprintw(w, y, x, " %10.10jx",
+ (uintmax_t)((pt->cur >> 24) & 0xffffffffffLL));
x += COLW;
break;
case COL_MAP:
More information about the varnish-commit
mailing list