summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry V. Levin <[email protected]>2020-12-12 04:27:37 +0300
committerMark Wielaard <[email protected]>2020-12-12 14:59:17 +0100
commitadbf4bafc2398e90a90a4e98b4ce2e05614c617b (patch)
treed6e89d20faba278cb50fd1e22f3512e3fd3d329e /src
parentb43d1b48c6add5f1f92a11ff505eb1e807c5e965 (diff)
src: fix spelling typos in argp help text and error diagnostics
Since all these help text strings are marked for translation, apply the fixes to translation strings as well, this helps to avoid translations becoming fuzzy. lenght -> length occured -> occurred endianess -> endianness reversable -> reversible Signed-off-by: Dmitry V. Levin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/readelf.c2
-rw-r--r--src/stack.c2
-rw-r--r--src/strings.c2
-rw-r--r--src/strip.c4
5 files changed, 13 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 668b18b0..0349f5c7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
+2020-12-12 Dmitry V. Levin <[email protected]>
+
+ * readelf.c (print_debug_addr_section): Fix spelling typo in error
+ diagnostics.
+ * strip.c (options): Fix spelling typos in argp help text.
+ * strings.c (options): Likewise.
+ * stack.c (options): Likewise.
+
2020-11-01 Érico N. Rolim <[email protected]>
* unstrip.c (make_directories): Use ACCESSPERMS for mkdir.
diff --git a/src/readelf.c b/src/readelf.c
index f6d13afa..183e6972 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -5251,7 +5251,7 @@ print_debug_addr_section (Dwfl_Module *dwflmod __attribute__ ((unused)),
{
error (0, 0,
"Warning: Couldn't calculate .debug_addr "
- " unit lenght at %" PRIx64, off);
+ " unit length at %" PRIx64, off);
next_unitp = readendp;
}
}
diff --git a/src/stack.c b/src/stack.c
index 2ec7c972..534aa93c 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -688,7 +688,7 @@ Program exits with return code 0 if all frames were shown without \
any errors. If some frames were shown, but there were some non-fatal \
errors, possibly causing an incomplete backtrace, the program exits \
with return code 1. If no frames could be shown, or a fatal error \
-occured the program exits with return code 2. If the program was \
+occurred the program exits with return code 2. If the program was \
invoked with bad or missing arguments it will exit with return code 64.")
};
diff --git a/src/strings.c b/src/strings.c
index ef40d5ec..8e259211 100644
--- a/src/strings.c
+++ b/src/strings.c
@@ -67,7 +67,7 @@ static const struct argp_option options[] =
{ "bytes", 'n', "MIN-LEN", 0,
N_("Only NUL-terminated sequences of MIN-LEN characters or more are printed"), 0 },
{ "encoding", 'e', "SELECTOR", 0, N_("\
-Select character size and endianess: s = 7-bit, S = 8-bit, {b,l} = 16-bit, {B,L} = 32-bit"),
+Select character size and endianness: s = 7-bit, S = 8-bit, {b,l} = 16-bit, {B,L} = 32-bit"),
0},
{ "print-file-name", 'f', NULL, 0,
N_("Print name of the file before each string."), 0 },
diff --git a/src/strip.c b/src/strip.c
index 48792a70..9dbdf5d9 100644
--- a/src/strip.c
+++ b/src/strip.c
@@ -82,9 +82,9 @@ static const struct argp_option options[] =
{ "preserve-dates", 'p', NULL, 0,
N_("Copy modified/access timestamps to the output"), 0 },
{ "reloc-debug-sections", OPT_RELOC_DEBUG, NULL, 0,
- N_("Resolve all trivial relocations between debug sections if the removed sections are placed in a debug file (only relevant for ET_REL files, operation is not reversable, needs -f)"), 0 },
+ N_("Resolve all trivial relocations between debug sections if the removed sections are placed in a debug file (only relevant for ET_REL files, operation is not reversible, needs -f)"), 0 },
{ "reloc-debug-sections-only", OPT_RELOC_DEBUG_ONLY, NULL, 0,
- N_("Similar to --reloc-debug-sections, but resolve all trivial relocations between debug sections in place. No other stripping is performed (operation is not reversable, incompatible with -f, -g, --remove-comment and --remove-section)"), 0 },
+ N_("Similar to --reloc-debug-sections, but resolve all trivial relocations between debug sections in place. No other stripping is performed (operation is not reversible, incompatible with -f, -g, --remove-comment and --remove-section)"), 0 },
{ "remove-comment", OPT_REMOVE_COMMENT, NULL, 0,
N_("Remove .comment section"), 0 },
{ "remove-section", 'R', "SECTION", 0, N_("Remove the named section. SECTION is an extended wildcard pattern. May be given more than once. Only non-allocated sections can be removed."), 0 },