Re: svn commit: r261875 - head/usr.bin/netstat

2014-02-16 Thread Rui Paulo
On 14 Feb 2014, at 01:23, Adrian Chadd adr...@freebsd.org wrote:

 ew, ok. Sorry. We don't have a generic way of doing that. I'll fix it in the 
 am.

Of course we do.  Just move the %s to 'lookup%s'.

--
Rui Paulo



___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org


Re: svn commit: r261875 - head/usr.bin/netstat

2014-02-13 Thread Gleb Smirnoff
On Fri, Feb 14, 2014 at 07:43:40AM +, Adrian Chadd wrote:
A Author: adrian
A Date: Fri Feb 14 07:43:39 2014
A New Revision: 261875
A URL: http://svnweb.freebsd.org/changeset/base/261875
A 
A Log:
A   Reword.
A   
A   Suggestion:glebius
A 
A Modified:
A   head/usr.bin/netstat/flowtable.c
A 
A Modified: head/usr.bin/netstat/flowtable.c
A 
==
A --- head/usr.bin/netstat/flowtable.c Fri Feb 14 07:36:04 2014
(r261874)
A +++ head/usr.bin/netstat/flowtable.c Fri Feb 14 07:43:39 2014
(r261875)
A @@ -55,7 +55,7 @@ print_stats(struct flowtable_stat *stat)
A  p(ft_collisions, \t%ju collision%s\n);
A  p(ft_free_checks, \t%ju free check%s\n);
A  p(ft_frees, \t%ju free%s\n);
A -p(ft_fail_lle_invalid, \t%ju lookups w/ no resolved ARP%s\n);
A +p(ft_fail_lle_invalid, \t%ju lookups w/ no resolved Layer 2 
address%s\n);
A  
A  #undef  p2
A  #undef  p

Oh, sorry this is not correct. We need the plural() output after lookup,
not after address.

We need:

1 lookup w/ no resolved Layer 2 address
2 lookups w/ no resolved Layer 2 address

We don't want:

1 lookups w/ no resolved Layer 2 address
2 lookups w/ no resolved Layer 2 addresss

-- 
Totus tuus, Glebius.
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org