summaryrefslogtreecommitdiffstats
path: root/login-utils/ttymsg.c
diff options
context:
space:
mode:
authorBenno Schulenberg2011-01-31 22:35:44 +0100
committerKarel Zak2011-02-16 15:46:38 +0100
commite8ab5ce3d0ea7e63194bf96964c4dc637b998aeb (patch)
tree8bd60162296113b294e6345a2d9081159e6566ae /login-utils/ttymsg.c
parenttextual: fix three typos in message strings and improve consistency (diff)
downloadkernel-qcow2-util-linux-e8ab5ce3d0ea7e63194bf96964c4dc637b998aeb.tar.gz
kernel-qcow2-util-linux-e8ab5ce3d0ea7e63194bf96964c4dc637b998aeb.tar.xz
kernel-qcow2-util-linux-e8ab5ce3d0ea7e63194bf96964c4dc637b998aeb.zip
textual: improve the wording of some error and usage messages
[kzak@redhat.com: - cleanup lscpu(1) usage text - use <disk> rather than <device> in partx(8) usage text] Signed-off-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/ttymsg.c')
-rw-r--r--login-utils/ttymsg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/login-utils/ttymsg.c b/login-utils/ttymsg.c
index 92282c127..a4df59e6c 100644
--- a/login-utils/ttymsg.c
+++ b/login-utils/ttymsg.c
@@ -171,7 +171,8 @@ ttymsg(struct iovec *iov, int iovcnt, char *line, int tmout) {
if (forked)
_exit(1);
if (strlen(strerror(errno)) > 1000)
- (void) sprintf(errbuf, _("%s: BAD ERROR"), device);
+ (void) sprintf(errbuf, _("%s: BAD ERROR, message is "
+ "far too long"), device);
else {
errsv = errno;
(void) sprintf(errbuf, "%s: %s", device,