From owner-svn-src-all@freebsd.org Thu Jul 27 14:34:59 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 39A37DCC6A7; Thu, 27 Jul 2017 14:34:59 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 042A27C7F3; Thu, 27 Jul 2017 14:34:58 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6REYw8e018265; Thu, 27 Jul 2017 14:34:58 GMT (envelope-from mav@FreeBSD.org) Received: (from mav@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6REYwf2018264; Thu, 27 Jul 2017 14:34:58 GMT (envelope-from mav@FreeBSD.org) Message-Id: <201707271434.v6REYwf2018264@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mav set sender to mav@FreeBSD.org using -f From: Alexander Motin Date: Thu, 27 Jul 2017 14:34:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r321620 - head/usr.bin/w X-SVN-Group: head X-SVN-Commit-Author: mav X-SVN-Commit-Paths: head/usr.bin/w X-SVN-Commit-Revision: 321620 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jul 2017 14:34:59 -0000 Author: mav Date: Thu Jul 27 14:34:57 2017 New Revision: 321620 URL: https://svnweb.freebsd.org/changeset/base/321620 Log: Fix singular/plural "users" output. It was broken during libxo'fication. PR: 221039 Submitted by: timur@ MFC after: 1 week Modified: head/usr.bin/w/w.c Modified: head/usr.bin/w/w.c ============================================================================== --- head/usr.bin/w/w.c Thu Jul 27 13:37:21 2017 (r321619) +++ head/usr.bin/w/w.c Thu Jul 27 14:34:57 2017 (r321620) @@ -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.