From owner-svn-src-stable@FreeBSD.ORG Fri Mar 21 20:27:34 2014 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 64447975 for ; Fri, 21 Mar 2014 20:27:34 +0000 (UTC) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D7A84E09 for ; Fri, 21 Mar 2014 20:27:33 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id c11so1998475lbj.26 for ; Fri, 21 Mar 2014 13:27:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=RT0udrIkVGfLCY3embvPIWePYNOUFNRk2ZXWm7sX2NA=; b=KIiTultqvdOjkSsHEPIBiPicPsFfTqrsHjaXZJaHU7Zn4Xdasn4i1/c2vc2mzmxfiU F3Xeh/IzohHkDO+hsXdv3l9Tehc5a0jBX5i/gpAxwZhseZo47LoR0Uo2iF2c+ccuXShP dmCD+Pu6j0ICN6JJZhASXhNpcJczriRVjR/ZEUUbo88kSATy166S9YTXpgnGz+FLtJ7z q2iK1s3qc/94sZOpIjqKIeUVUucy1B5QEeVmdGzyG0hf6PN8WmNX0c3QHMm3tzMXB4dp nmHpBJFQEDo6Dmezk31l2I2LQD4TL/9+PUC3TrShcuKdYdmi5nco8Q1uCQbVyOdQm3xt ph3Q== X-Gm-Message-State: ALoCoQmv/8J2QZ9YOZjt0Z3hqWaWwg62hFCMn95UEIuq/vq+4y4iv2LSPQo9Ve1JFHZD8zgzq9cD X-Received: by 10.152.246.43 with SMTP id xt11mr3159176lac.34.1395433645860; Fri, 21 Mar 2014 13:27:25 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by mx.google.com with ESMTPSA id sx1sm5683681lac.1.2014.03.21.13.27.24 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 13:27:25 -0700 (PDT) Message-ID: <532CA0AD.2000608@freebsd.org> Date: Sat, 22 Mar 2014 00:27:25 +0400 From: Andrey Chernov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Gleb Smirnoff , 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 References: <201403211515.s2LFFVUb064861@svn.freebsd.org> <532C9C02.5010409@freebsd.org> In-Reply-To: <532C9C02.5010409@freebsd.org> X-Enigmail-Version: 1.7a1pre Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2014 20:27:34 -0000 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/