diff options
author | Benno Schulenberg | 2015-01-10 14:41:32 +0100 |
---|---|---|
committer | Karel Zak | 2015-01-12 11:28:21 +0100 |
commit | 1e098672f4a98abc2b0b387025a55e5f9821cba3 (patch) | |
tree | 21cec7b2fb1a756fbf69389fb8da62ce0c1824a8 /sys-utils/setarch.c | |
parent | partx: don't use "hard drive" in man pages (diff) | |
download | kernel-qcow2-util-linux-1e098672f4a98abc2b0b387025a55e5f9821cba3.tar.gz kernel-qcow2-util-linux-1e098672f4a98abc2b0b387025a55e5f9821cba3.tar.xz kernel-qcow2-util-linux-1e098672f4a98abc2b0b387025a55e5f9821cba3.zip |
setarch: differentiate between "unrecognized" and "cannot set"
When the provided string does not match any architecture that
setarch knows about, the response stays "Unrecognized architecture",
but when trying to set the specified architecture does not have any
effect, then respond with "Kernel cannot set architecture to...".
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'sys-utils/setarch.c')
-rw-r--r-- | sys-utils/setarch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index 8e5217937..a09625c86 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -247,7 +247,7 @@ static int set_arch(const char *pers, unsigned long options, int list) && strcmp(un.machine, "i586") && strcmp(un.machine, "i686") && strcmp(un.machine, "athlon"))) - errx(EXIT_FAILURE, _("%s: Unrecognized architecture"), pers); + errx(EXIT_FAILURE, _("Kernel cannot set architecture to %s"), pers); } return 0; } |