]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: fix spelling typos in error diagnostics and comments
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 12 Dec 2020 16:52:43 +0000 (19:52 +0300)
committerMark Wielaard <mark@klomp.org>
Sat, 12 Dec 2020 17:06:28 +0000 (18:06 +0100)
Cannnot -> Cannot
decriptors -> descriptors
experssions -> expressions
explit -> explicit
falg -> flag
irrelevent -> irrelevant
mininum -> minimum
outselves -> ourselves
proces -> process
versio -> version

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
tests/ChangeLog
tests/dwarf-die-addr-die.c
tests/dwfl-bug-fd-leak.c
tests/elfstrmerge.c
tests/run-lfs-symbols.sh
tests/run-readelf-line.sh
tests/run-stack-demangled-test.sh
tests/sectiondump.c
tests/varlocs.c

index a3813ddc296bbcc398537821549519d28b04475a..2c83f6904f36abfab95af847b805821c7ecb3aec 100644 (file)
@@ -1,3 +1,14 @@
+2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+       * dwarf-die-addr-die.c (main): Fix spelling typo in error diagnostics.
+       * run-lfs-symbols.sh: Likewise.
+       * elfstrmerge.c (main): Fix spelling typos in comments.
+       * dwfl-bug-fd-leak.c: Likewise.
+       * run-readelf-line.sh: Likewise.
+       * run-stack-demangled-test.sh: Likewise.
+       * sectiondump.c (main): Likewise.
+       * varlocs.c (handle_die): Likewise.
+
 2020-12-11  Dmitry V. Levin  <ldv@altlinux.org>
 
        * configure.ac: Remove.
index 7899988f8ed02620a6d5dca9d2ad471054a0ccfd..24bfbeb7e50d004818448eec5cb7dd0ae6d9a592 100644 (file)
@@ -164,7 +164,7 @@ main (int argc, char *argv[])
   int fd = open (name, O_RDONLY);
   if (fd < 0)
     {
-      printf ("Cannnot open '%s': %s\n", name, strerror (errno));
+      printf ("Cannot open '%s': %s\n", name, strerror (errno));
       return -1;
     }
 
index b09133613515170a9347945f9942939b8131ed0d..7554d6ec8fa5e13a31d506dcf9271def153a882c 100644 (file)
@@ -1,4 +1,4 @@
-/* Test program for libdwfl file decriptors leakage.
+/* Test program for libdwfl file descriptors leakage.
    Copyright (C) 2007, 2008 Red Hat, Inc.
    This file is part of elfutils.
 
index ba0d68df52999ff65bd02d7d7eb1ca4c80a710b7..abbdf3fdba9ec29d2a398681996b8020ef1c0ccf 100644 (file)
@@ -332,7 +332,7 @@ main (int argc, char **argv)
     if (unlikely (secndx == 0 || secndx == shdrstrndx || secndx >= shdrnum))
       {
        /* Don't use fail... too specialized messages.  Call release
-          outselves and then error.  Ignores midx if widx is
+          ourselves and then error.  Ignores midx if widx is
           zero.  */
        release ();
        if (widx == 0)
@@ -543,7 +543,7 @@ main (int argc, char **argv)
              {
                new_data_buf (newdata);
                /* A section group contains Elf32_Words. The first
-                  word is a falg value, the rest of the words are
+                  word is a flag value, the rest of the words are
                   indexes of the sections belonging to the group.  */
                Elf32_Word *group = (Elf32_Word *) data->d_buf;
                Elf32_Word *newgroup = (Elf32_Word *) newdata->d_buf;
index 7398e7f438abd4082daa79c7b8e951cd8975293a..762a5d96961af6f810911dcebdc1c40376da8e99 100755 (executable)
@@ -18,7 +18,7 @@
 . $srcdir/test-subr.sh
 
 if ! grep -q -F '#define _FILE_OFFSET_BITS' ${abs_top_builddir}/config.h; then
-  echo "LFS testing is irrelevent on this system"
+  echo "LFS testing is irrelevant on this system"
   exit 77
 fi
 
index a95e6aa9b22e5d391e96c69d0fcc5b924533d92b..eef50e9d95f261fa89debc4a0faeee068db2ec4c 100755 (executable)
@@ -262,7 +262,7 @@ DWARF section [30] '.debug_line' at offset 0x15f6:
 
 EOF
 
-# A .debug_line table with mininum instruction length > 1.
+# A .debug_line table with minimum instruction length > 1.
 #
 # = hello.c
 # #include <stdio.h>
index c26918f9f5c21cff6638857afec08d3fccbf4abc..ac5bc6175d40233e0422c3fd61b9f65e4e1fd3a1 100755 (executable)
@@ -24,7 +24,7 @@ fi
 
 # See run-stack-d-test.sh and run-stack-i-test.sh
 # Same tests, now with demangler support, no -r, and without -d.
-# Only change in output is an explit fu(int) instead of _Z2fui.
+# Only change in output is an explicit fu(int) instead of _Z2fui.
 
 testfiles testfiledwarfinlines testfiledwarfinlines.core
 
index f33484f9bbc7aeb0e31f43c2ea39bba76b7ce37b..661e644053832beabd05e9822aebca0fcf7ebc7c 100644 (file)
@@ -49,7 +49,7 @@ main (int argc, char *argv[])
   if (fd == -1)
     error (EXIT_FAILURE, errno, "cannot open input file `%s'", argv[1]);
 
-  /* Set the library versio we expect.  */
+  /* Set the library version we expect.  */
   elf_version (EV_CURRENT);
 
   /* Create the ELF descriptor.  */
@@ -58,7 +58,7 @@ main (int argc, char *argv[])
     error (EXIT_FAILURE, 0, "cannot create ELF descriptor: %s",
           elf_errmsg (0));
 
-  /* Now proces all the sections mentioned in the rest of the command line.  */
+  /* Now process all the sections mentioned in the rest of the command line.  */
   for (cnt = 2; cnt < argc; ++cnt)
     if (handle_section (elf, elf_getscn (elf, atoi (argv[cnt]))) != 0)
       /* When we encounter an error stop immediately.  */
@@ -116,7 +116,7 @@ handle_section (Elf *elf, Elf_Scn *scn)
   if (data == NULL)
     return 1;
 
-  /* Now proces the different section types accordingly.  */
+  /* Now process the different section types accordingly.  */
   switch (shdr->sh_type)
     {
     case SHT_SYMTAB:
index 405051960b5dfd6621ecc75f0c37bf6cbb071eab..152c655579c712782d77f99139fcb62e8a4f0851 100644 (file)
@@ -1011,7 +1011,7 @@ handle_die (Dwarf_Die *die, int depth, bool outer_has_frame_base,
   arg.entrypc = die_entrypc;
 
   /* Whether this or the any outer DIE has a frame base. Used as
-     sanity check when printing experssions that use DW_OP_fbreg.  */
+     sanity check when printing expressions that use DW_OP_fbreg.  */
   bool die_has_frame_base = dwarf_hasattr (die, DW_AT_frame_base);
   die_has_frame_base |= outer_has_frame_base;
   has_frame_base = die_has_frame_base;