summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
diff options
context:
space:
mode:
authorBenno Schulenberg2013-01-22 09:36:01 +0100
committerKarel Zak2013-01-30 15:23:42 +0100
commit9e531400758902d01f89d1c32b77e5d41e90b464 (patch)
tree039cecc4141ec3cfdadebbaf4c107d0af524759a /term-utils/agetty.c
parentfdisk: add support for the Xtensa architecture (diff)
downloadkernel-qcow2-util-linux-9e531400758902d01f89d1c32b77e5d41e90b464.tar.gz
kernel-qcow2-util-linux-9e531400758902d01f89d1c32b77e5d41e90b464.tar.xz
kernel-qcow2-util-linux-9e531400758902d01f89d1c32b77e5d41e90b464.zip
agetty: properly pluralize the reporting of the number of users
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r--term-utils/agetty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index aee853cb7..c79c41665 100644
--- a/term-utils/agetty.c
+++ b/term-utils/agetty.c
@@ -1930,9 +1930,10 @@ static void output_special_char(unsigned char c, struct options *op,
if (ut->ut_type == USER_PROCESS)
users++;
endutent();
- printf ("%d ", users);
if (c == 'U')
- printf((users == 1) ? _("user") : _("users"));
+ printf(P_("%d user", "%d users", users), users);
+ else
+ printf ("%d ", users);
break;
}
case '4':