From owner-freebsd-stable@FreeBSD.ORG Wed Sep 10 16:19:06 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 492C5106566B; Wed, 10 Sep 2008 16:19:06 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 0D5388FC15; Wed, 10 Sep 2008 16:19:05 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.14.2/8.14.2) with ESMTP id m8AGIxam090408; Wed, 10 Sep 2008 12:18:59 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id m8AGIxM5002508 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 10 Sep 2008 12:18:59 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200809101618.m8AGIxM5002508@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 10 Sep 2008 12:18:59 -0400 To: obrien@freebsd.org From: Mike Tancsa In-Reply-To: <20080910153105.GA93325@dragon.NUXI.org> References: <200809011505.m81F5UwC062968@repoman.freebsd.org> <200809100231.m8A2VliB098720@lava.sentex.ca> <20080910153105.GA93325@dragon.NUXI.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: freebsd-stable@freebsd.org Subject: Re: cvs commit: src/usr.bin/netstat Makefile bpf.c inet.c pfkey.c route.c sctp.c X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2008 16:19:06 -0000 At 11:31 AM 9/10/2008, David O'Brien wrote: >On Tue, Sep 09, 2008 at 10:31:46PM -0400, Mike Tancsa wrote: > > > > Hi, > > The change below seems to make netstat -B on RELENG_7 coredump > > netstat -B > > > > specifically, > > > > - printf("%5d %6s %7s %9lu %9lu %9lu %5d %5d %s\n", > > + printf("%5d %6s %7s %9ju %9ju %9ju %5d %5d %s\n", > > > > > > Not sure if its a netstat issue or a libc issue as it works fine in HEAD > >Can you test this patch? Hi, Thanks! Yes, it does fix the problem for me on my i386 RELENG_7 box ---Mike >This will quickly fix the issue, until I can >build world with matching the releng7 definitions with CURRENT. > > >Index: bpf.c >=================================================================== >--- bpf.c (revision 182906) >+++ bpf.c (working copy) >@@ -122,7 +122,8 @@ bpf_stats(char *ifname) > pname = bpf_pidname(d->bd_pid); > (void) printf("%5d %6s %7s %9ju %9ju %9ju %5d %5d %s\n", > d->bd_pid, d->bd_ifname, flagbuf, >- d->bd_rcount, d->bd_dcount, d->bd_fcount, >+ (intmax_t)d->bd_rcount, (intmax_t)d->bd_dcount, >+ (intmax_t)d->bd_fcount, > d->bd_slen, d->bd_hlen, pname); > free(pname); > }