summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenno Schulenberg <bensberg@justemail.net>2007-11-06 00:26:59 +0100
committerKarel Zak <kzak@redhat.com>2007-11-06 01:09:04 +0100
commit2e2d3ff6a3ac9d02c049c9187d64c10af468d3db (patch)
tree7f0708ebfd8fa875c1ace8247e51a486e9c34544
parentbbc9abce3f981653b3dbb6b010188f079e8298fc (diff)
downloadutil-linux-old-2e2d3ff6a3ac9d02c049c9187d64c10af468d3db.tar.gz
setarch: tweak the help text, and gettextize a forgotten message
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
-rw-r--r--sys-utils/setarch.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c
index b98d8d37..a544853a 100644
--- a/sys-utils/setarch.c
+++ b/sys-utils/setarch.c
@@ -82,10 +82,10 @@ show_help(void)
p, !strcmp(p, "setarch") ? " <arch>" : "");
printf(_(
- " -h, --help this help\n"
- " -v, --verbose verbose mode\n"
+ " -h, --help displays this help text\n"
+ " -v, --verbose says what options are being switched on\n"
" -R, --addr-no-randomize disables randomization of the virtual address space\n"
- " -F, --fdpic-funcptrs turns on function pointers point to descriptors\n"
+ " -F, --fdpic-funcptrs makes function pointers point to descriptors\n"
" -Z, --mmap-page-zero turns on MMAP_PAGE_ZERO\n"
" -L, --addr-compat-layout changes the way virtual memory is allocated\n"
" -X, --read-implies-exec turns on READ_IMPLIES_EXEC\n"
@@ -93,8 +93,8 @@ show_help(void)
" -I, --short-inode turns on SHORT_INODE\n"
" -S, --whole-seconds turns on WHOLE_SECONDS\n"
" -T, --sticky-timeouts turns on STICKY_TIMEOUTS\n"
- " -3, --3gb turns on maximum of 3GB of address space\n"
- " --4gb ignored (for backward compatibility only\n"));
+ " -3, --3gb limits the used address space to a maximum of 3 GB\n"
+ " --4gb ignored (for backward compatibility only)\n"));
printf(_("\nFor more information see setarch(8).\n"));
exit(EXIT_SUCCESS);
@@ -226,7 +226,7 @@ int main(int argc, char *argv[])
#if defined(__sparc64__) || defined(__sparc__)
if (!strcmp(p, "sparc32bash")) {
if (set_arch(p, 0L))
- error(EXIT_FAILURE, errno, "Failed to set personality to %s", p);
+ error(EXIT_FAILURE, errno, _("Failed to set personality to %s"), p);
execl("/bin/bash", NULL);
error(EXIT_FAILURE, errno, "/bin/bash");
}