Date: Sat, 22 Mar 2014 00:27:25 +0400 From: Andrey Chernov <ache@freebsd.org> To: Gleb Smirnoff <glebius@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: Re: svn commit: r263478 - in stable/10: share/man/man9 sys/contrib/ipfilter/netinet sys/net sys/netatalk sys/netinet sys/netinet6 sys/netipx sys/netpfil/pf sys/nfs usr.bin/netstat Message-ID: <532CA0AD.2000608@freebsd.org> In-Reply-To: <532C9C02.5010409@freebsd.org> References: <201403211515.s2LFFVUb064861@svn.freebsd.org> <532C9C02.5010409@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 22.03.2014 0:07, Andrey Chernov wrote: > /usr/src/usr.bin/netstat/route.c:333:7: error: format specifies type > 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long > long') [-Werror,-Wformat] > kread_counter((u_long )rt->rt_pksent)); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The whole expression is len = snprintf(buffer, sizeof(buffer), "%lu", kread_counter((u_long )rt->rt_pksent)); You can't print uint64_t kread_counter() using %lu on i386. > /usr/src/usr.bin/netstat/route.c:871:7: error: format specifies type > 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long > long') [-Werror,-Wformat] > kread_counter((u_long )rt->rt_pksent)); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 2 errors generated. > *** Error code 1 > > Stop. -- http://ache.vniz.net/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?532CA0AD.2000608>