public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [COMMITTED] Fix typos from codespell
@ 2023-01-13 22:56 Mark Wielaard
  0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2023-01-13 22:56 UTC (permalink / raw)
  To: elfutils-devel; +Cc: Mark Wielaard, Sam James

From: Sam James <sam@gentoo.org>

debuginfod/ChangeLog:

	* debuginfod-client.c: Typo simultaniously.

doc/ChangeLog:

	* debuginfod.8: Typo succesfully.

lib/ChangeLog:

	* dynamicsizehash_concurrent.c: Typo modul.
	* system.h: Typo dependend.

libdwfl/ChangeLog:

	* open.c: Typo non-existant.

src/ChangeLog:

	* nm.c: Typo Covert.
	* strings.c: Likewise.

tests/ChangeLog:

	* elfstrmerge.c: Typo outselves.
	* run-debuginfod-extraction.sh: Typo accidentially.
	* run-debuginfod-fd-prefetch-caches.sh: Likewise.

Signed-off-by: Sam James <sam@gentoo.org>
---
 debuginfod/debuginfod-client.c             | 2 +-
 doc/debuginfod.8                           | 2 +-
 lib/dynamicsizehash_concurrent.c           | 4 ++--
 lib/system.h                               | 2 +-
 libdwfl/open.c                             | 2 +-
 src/nm.c                                   | 2 +-
 src/strings.c                              | 2 +-
 tests/elfstrmerge.c                        | 2 +-
 tests/run-debuginfod-extraction.sh         | 2 +-
 tests/run-debuginfod-fd-prefetch-caches.sh | 2 +-
 10 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c
index 1ce45632..5f2a1024 100644
--- a/debuginfod/debuginfod-client.c
+++ b/debuginfod/debuginfod-client.c
@@ -316,7 +316,7 @@ debuginfod_clean_cache(debuginfod_client *c,
 
   /* Update timestamp representing when the cache was last cleaned.
      Do it at the start to reduce the number of threads trying to do a
-     cleanup simultaniously.  */
+     cleanup simultaneously.  */
   utime (interval_path, NULL);
 
   /* Read max unused age value from config file.  */
diff --git a/doc/debuginfod.8 b/doc/debuginfod.8
index 1aa8bc14..6d73256f 100644
--- a/doc/debuginfod.8
+++ b/doc/debuginfod.8
@@ -371,7 +371,7 @@ extract the contents of an ELF/DWARF section named SECTION from the
 debuginfo file matching BUILDID.  If the debuginfo file can't be found
 or the section has type SHT_NOBITS, then the server will attempt to extract
 the section from the executable matching BUILDID.  If the section is
-succesfully extracted then this request results in a binary object
+successfully extracted then this request results in a binary object
 of the section's contents.  Note that this result is the raw binary
 contents of the section, not an ELF file.
 
diff --git a/lib/dynamicsizehash_concurrent.c b/lib/dynamicsizehash_concurrent.c
index 7c4fedfc..2ea545e0 100644
--- a/lib/dynamicsizehash_concurrent.c
+++ b/lib/dynamicsizehash_concurrent.c
@@ -42,7 +42,7 @@
 static size_t
 lookup (NAME *htab, HASHTYPE hval)
 {
-  /* First hash function: simply take the modul but prevent zero.  Small values
+  /* First hash function: simply take the modulus but prevent zero.  Small values
       can skip the division, which helps performance when this is common.  */
   size_t idx = 1 + (hval < htab->size ? hval : hval % htab->size);
 
@@ -77,7 +77,7 @@ lookup (NAME *htab, HASHTYPE hval)
 static int
 insert_helper (NAME *htab, HASHTYPE hval, TYPE val)
 {
-  /* First hash function: simply take the modul but prevent zero.  Small values
+  /* First hash function: simply take the modulus but prevent zero.  Small values
       can skip the division, which helps performance when this is common.  */
   size_t idx = 1 + (hval < htab->size ? hval : hval % htab->size);
 
diff --git a/lib/system.h b/lib/system.h
index bbbe06c4..1c914efc 100644
--- a/lib/system.h
+++ b/lib/system.h
@@ -39,7 +39,7 @@
 #include <stdarg.h>
 #include <stdlib.h>
 
-/* System dependend headers */
+/* System dependent headers */
 #include <byteswap.h>
 #include <endian.h>
 #include <sys/mman.h>
diff --git a/libdwfl/open.c b/libdwfl/open.c
index fcb7f8ea..b97ff016 100644
--- a/libdwfl/open.c
+++ b/libdwfl/open.c
@@ -205,7 +205,7 @@ __libdw_open_elf_memory (char *data, size_t size, Elf **elfp, bool archive_ok)
 {
   /* It is ok to use `fd == -1` here, because libelf uses it as a value for
      "no file opened" and code supports working with this value, and also
-     `never_close_fd == false` is passed to prevent closing non-existant file.
+     `never_close_fd == false` is passed to prevent closing non-existent file.
      The only caveat is in `decompress` method, which doesn't support
      decompressing from memory, so reading compressed zImage using this method
      won't work.  */
diff --git a/src/nm.c b/src/nm.c
index b46c1fd7..fbdee8e1 100644
--- a/src/nm.c
+++ b/src/nm.c
@@ -829,7 +829,7 @@ show_symbols_sysv (Ebl *ebl, GElf_Word strndx, const char *fullname,
 	  putchar_unlocked (':');
 	}
 
-      /* Covert the address.  */
+      /* Convert the address.  */
       if (syms[cnt].sym.st_shndx == SHN_UNDEF)
 	{
 	  sprintf (addressbuf, "%*c", digits, ' ');
diff --git a/src/strings.c b/src/strings.c
index 55b047be..69d09ccf 100644
--- a/src/strings.c
+++ b/src/strings.c
@@ -364,7 +364,7 @@ process_chunk_mb (const char *fname, const unsigned char *buf, off_t to,
 
 	      /* There is no sane way of printing the string.  If we
 		 assume the file data is encoded in UCS-2/UTF-16 or
-		 UCS-4/UTF-32 respectively we could covert the string.
+		 UCS-4/UTF-32 respectively we could convert the string.
 		 But there is no such guarantee.  */
 	      fwrite_unlocked (start, 1, buf - start, stdout);
 	      putc_unlocked ('\n', stdout);
diff --git a/tests/elfstrmerge.c b/tests/elfstrmerge.c
index 197c6a5d..56350bb9 100644
--- a/tests/elfstrmerge.c
+++ b/tests/elfstrmerge.c
@@ -157,7 +157,7 @@ newsecndx (size_t secndx, size_t shdrstrndx, size_t shdrnum,
   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)
diff --git a/tests/run-debuginfod-extraction.sh b/tests/run-debuginfod-extraction.sh
index a3722c90..3ca31b8a 100755
--- a/tests/run-debuginfod-extraction.sh
+++ b/tests/run-debuginfod-extraction.sh
@@ -45,7 +45,7 @@ ps -q $PID1 -e -L -o '%p %c %a' | grep scan
 ps -q $PID1 -e -L -o '%p %c %a' | grep traverse
 
 # Make sure the initial scan has finished before copying the new files in
-# We might remove some, which we don't want to be accidentially scanned.
+# We might remove some, which we don't want to be accidentally scanned.
 wait_ready $PORT1 'thread_work_total{role="traverse"}' 1
 
 cp -rvp ${abs_srcdir}/debuginfod-rpms R
diff --git a/tests/run-debuginfod-fd-prefetch-caches.sh b/tests/run-debuginfod-fd-prefetch-caches.sh
index a538cd48..3db78ade 100755
--- a/tests/run-debuginfod-fd-prefetch-caches.sh
+++ b/tests/run-debuginfod-fd-prefetch-caches.sh
@@ -50,7 +50,7 @@ export DEBUGINFOD_CACHE_PATH=${PWD}/.client_cache
 rm -rf $DEBUGINFOD_CACHE_PATH
 rm -rf $DB
 # Testing prefetch fd maximum (Set mb maximums to be beyond consideration)
-# Set --fdcache-mintmp=0 so we don't accidentially trigger an fdcache
+# Set --fdcache-mintmp=0 so we don't accidentally trigger an fdcache
 # emergency flush for filling tmpdir
 env LD_LIBRARY_PATH=$ldpath DEBUGINFOD_URLS= ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -p $PORT1 -d $DB \
     --fdcache-fds=$FDCACHE_FDS --fdcache-prefetch-fds=$PREFETCH_FDS  -vvvvv -g 0 -t 0 \
-- 
2.31.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-13 22:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13 22:56 [COMMITTED] Fix typos from codespell Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).