Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 2008 08:31:05 -0700
From:      "David O'Brien" <obrien@freebsd.org>
To:        Mike Tancsa <mike@sentex.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: cvs commit: src/usr.bin/netstat Makefile bpf.c inet.c pfkey.c route.c sctp.c
Message-ID:  <20080910153105.GA93325@dragon.NUXI.org>
In-Reply-To: <200809100231.m8A2VliB098720@lava.sentex.ca>
References:  <200809011505.m81F5UwC062968@repoman.freebsd.org> <200809100231.m8A2VliB098720@lava.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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?  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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080910153105.GA93325>