svn commit: r321975 - stable/11/usr.bin/w

Alexander Motin mav at FreeBSD.org
Thu Aug 3 07:17:43 UTC 2017


Author: mav
Date: Thu Aug  3 07:17:41 2017
New Revision: 321975
URL: https://svnweb.freebsd.org/changeset/base/321975

Log:
  MFC r321620: Fix singular/plural "users" output.
  
  It was broken during libxo'fication.
  
  PR:		221039
  Submitted by:	timur@

Modified:
  stable/11/usr.bin/w/w.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/w/w.c
==============================================================================
--- stable/11/usr.bin/w/w.c	Thu Aug  3 07:00:55 2017	(r321974)
+++ stable/11/usr.bin/w/w.c	Thu Aug  3 07:17:41 2017	(r321975)
@@ -511,7 +511,7 @@ pr_header(time_t *nowp, int nusers)
 	}
 
 	/* Print number of users logged in to system */
-	xo_emit(" {:users/%d} {N:user%s}", nusers, nusers == 1 ? "" : "s");
+	xo_emit(" {:users/%d} {Np:user,users}", nusers);
 
 	/*
 	 * Print 1, 5, and 15 minute load averages.


More information about the svn-src-stable mailing list