Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/netstat



On 2005.08.05 10:46:53 +0000, Elad Efrat wrote:
| Quentin Garnier wrote:
| 
| >Neither versions are correct.  PRIu64 should be used.
| 
| Right -- diff attached.

Do it, thanks!

| 
| -e.
| 
| -- 
| Elad Efrat
| PGP Key ID: 0x666EB914

| 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 " ", 


                -- Rui Paulo



Home | Main Index | Thread Index | Old Index