All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] setarch: differentiate between "unrecognized" and "cannot set"
@ 2015-01-10 13:41 Benno Schulenberg
  2015-01-10 13:41 ` [PATCH 2/4] docs: mention that setarch may not be able to set all listed architectures Benno Schulenberg
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Benno Schulenberg @ 2015-01-10 13:41 UTC (permalink / raw)
  To: util-linux

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>
---
 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 8e52179..a09625c 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;
 }
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-01-12 11:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-10 13:41 [PATCH 1/4] setarch: differentiate between "unrecognized" and "cannot set" Benno Schulenberg
2015-01-10 13:41 ` [PATCH 2/4] docs: mention that setarch may not be able to set all listed architectures Benno Schulenberg
2015-01-11 16:19   ` JWP
2015-01-11 17:07     ` Benno Schulenberg
2015-01-11 18:43       ` JWP
2015-01-12 10:41         ` karel Zak
2015-01-12 11:23   ` Karel Zak
2015-01-10 13:41 ` [PATCH 3/4] setarch: accept the option --list in any position Benno Schulenberg
2015-01-12 11:25   ` Karel Zak
2015-01-10 13:41 ` [PATCH 4/4] setarch: in the usage text only mention options that actually do something Benno Schulenberg
2015-01-12 11:33   ` Karel Zak
2015-01-12 11:23 ` [PATCH 1/4] setarch: differentiate between "unrecognized" and "cannot set" Karel Zak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.