Date: Wed, 22 Nov 2017 22:04:27 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326108 - head/usr.bin/systat Message-ID: <201711222204.vAMM4R4W024012@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Nov 22 22:04:27 2017 New Revision: 326108 URL: https://svnweb.freebsd.org/changeset/base/326108 Log: Order declarations alphabetically. Match signess of the format and the value. Noted by: bde Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/systat/vmstat.c Modified: head/usr.bin/systat/vmstat.c ============================================================================== --- head/usr.bin/systat/vmstat.c Wed Nov 22 22:04:04 2017 (r326107) +++ head/usr.bin/systat/vmstat.c Wed Nov 22 22:04:27 2017 (r326108) @@ -138,10 +138,10 @@ static void allocinfo(struct Info *); static void copyinfo(struct Info *, struct Info *); static float cputime(int); static void dinfo(int, int, struct statinfo *, struct statinfo *); +static void do_putuint64(uint64_t, int, int, int, int); static void getinfo(struct Info *); static void putint(int, int, int, int); static void putuint64(uint64_t, int, int, int); -static void do_putuint64(uint64_t, int, int, int, int); static void putfloat(double, int, int, int, int, int); static void putlongdouble(long double, int, int, int, int, int); static int ucount(void); @@ -699,7 +699,7 @@ do_putuint64(uint64_t n, int l, int lc, int w, int div addch(' '); return; } - snr = snprintf(b, sizeof(b), "%*jd", w, (uintmax_t)n); + snr = snprintf(b, sizeof(b), "%*ju", w, (uintmax_t)n); if (snr != w) { humanize_number(buf, w, n, "", HN_AUTOSCALE, HN_NOSPACE | HN_DECIMAL | div);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711222204.vAMM4R4W024012>