]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
textual: tag two bug messages as "internal error"
authorBenno Schulenberg <bensberg@justemail.net>
Mon, 6 Feb 2012 15:05:35 +0000 (16:05 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 25 Jan 2013 10:47:28 +0000 (11:47 +0100)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
schedutils/taskset.c
term-utils/ttymsg.c

index c1bb17343b6a6f28a7c63400df9cc5c2689040dd..05f294c0c200f81d64a70a390cdaf439cd7ba893 100644 (file)
@@ -93,8 +93,7 @@ static void print_affinity(struct taskset *ts, int isnew)
        }
 
        if (!str)
-               /* this is internal error... */
-               errx(EXIT_FAILURE, _("conversion from cpuset to string failed"));
+               errx(EXIT_FAILURE, _("internal error: conversion from cpuset to string failed"));
 
        printf(msg, ts->pid, str);
 }
index aea6c2656040a3c5556f3f88f8eaa50157e2ed2d..185e9bba945b2936467037f6416c6dd9f41ad41c 100644 (file)
@@ -74,7 +74,7 @@ ttymsg(struct iovec *iov, size_t iovcnt, char *line, int tmout) {
        int fd, forked = 0, errsv;
 
        if (iovcnt > sizeof(localiov) / sizeof(localiov[0]))
-               return (_("too many iov's (change code in wall/ttymsg.c)"));
+               return (_("internal error: too many iov's"));
 
        /* The old code here rejected the line argument when it contained a '/',
           saying: "A slash may be an attempt to break security...".