From: phk Date: Thu, 7 Aug 2008 09:56:42 +0000 (+0000) Subject: Fix a printf type complaint. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ea05ba2d7184ac35a143f3242f7a453b25e18da;p=varnish Fix a printf type complaint. Also fix style. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3071 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishstat/varnishstat.c b/varnish-cache/bin/varnishstat/varnishstat.c index 58cd5d14..4d5fb5b2 100644 --- a/varnish-cache/bin/varnishstat/varnishstat.c +++ b/varnish-cache/bin/varnishstat/varnishstat.c @@ -212,10 +212,11 @@ do_once(struct varnish_stats *VSL_stats, const char* fields) up = tv.tv_sec - VSL_stats->start_time; do { - if (fields != NULL && ! show_field("uptime", fields )) - break; - printf("%-16s %12ju %12s %s\n", "uptime", - tv.tv_sec - VSL_stats->start_time, ". ", "Child uptime"); + if (fields != NULL && ! show_field("uptime", fields )) + break; + printf("%-16s %12ju %12s %s\n", "uptime", + (uintmax_t)(tv.tv_sec - VSL_stats->start_time), + ". ", "Child uptime"); } while (0); #define MAC_STAT(n, t, f, d) \