Subject: Re: CVS commit: src/usr.bin/netstat
To: Quentin Garnier <cube@cubidou.net>
From: Elad Efrat <elad@NetBSD.org>
List: source-changes
Date: 08/05/2005 10:46:53
This is a multi-part message in MIME format.
--------------030403060702030809040108
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Quentin Garnier wrote:

> Neither versions are correct.  PRIu64 should be used.

Right -- diff attached.

-e.

-- 
Elad Efrat
PGP Key ID: 0x666EB914

--------------030403060702030809040108
Content-Type: text/plain;
 name="bpf.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="bpf.c.diff"

Index: bpf.c
===================================================================
RCS file: /cvsroot/src/usr.bin/netstat/bpf.c,v
retrieving revision 1.1
diff -r1.1 bpf.c
65,67c65,67
< 	printf("\t%lld total packets received\n", bpf_s.bs_recv);
< 	printf("\t%lld total packets captured\n", bpf_s.bs_capt);
< 	printf("\t%lld total packets dropped\n", bpf_s.bs_drop);
---
> 	printf("\t%" PRIu64 " total packets received\n", bpf_s.bs_recv);
> 	printf("\t%" PRIu64 " total packets captured\n", bpf_s.bs_capt);
> 	printf("\t%" PRIu64 " total packets dropped\n", bpf_s.bs_drop);
125c125
< 		printf("%-8lld %-8lld %-8lld ", 
---
> 		printf("%-8" PRIu64 " %-8" PRIu64 " %-8" PRIu64 " ", 

--------------030403060702030809040108--