From: Tobias Stoeckmann Date: Tue, 13 Aug 2024 17:20:12 +0000 (+0200) Subject: Fix typos X-Git-Tag: v34~518 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=717091acaad699a5003a27bf7c310df6563a6171;p=thirdparty%2Fkmod.git Fix typos Typos found with codespell. Reviewed-by: Emil Velikov Signed-off-by: Tobias Stoeckmann Signed-off-by: Lucas De Marchi --- diff --git a/libkmod/libkmod-elf.c b/libkmod/libkmod-elf.c index 06a98766..9f6ad941 100644 --- a/libkmod/libkmod-elf.c +++ b/libkmod/libkmod-elf.c @@ -749,7 +749,7 @@ static uint64_t kmod_elf_resolve_crc(const struct kmod_elf *elf, uint64_t crc, u err = elf_get_section_info(elf, shndx, &off, &size, &nameoff); if (err < 0) { - ELFDBG("Cound not find section index %"PRIu16" for crc", shndx); + ELFDBG("Could not find section index %"PRIu16" for crc", shndx); return (uint64_t)-1; } diff --git a/libkmod/libkmod-index.c b/libkmod/libkmod-index.c index b7f8bd37..5fd61379 100644 --- a/libkmod/libkmod-index.c +++ b/libkmod/libkmod-index.c @@ -117,7 +117,7 @@ * We still use arrays of child pointers indexed by a single character; * the remaining characters of the label are stored as a "prefix" in the child. * - * The paper describing the original Patrica trie works on individiual bits - + * The paper describing the original Patrica trie works on individual bits - * each node has a maximum of two children, which increases space efficiency. * However for this application it is simpler to use the ASCII character set. * Since the index file is read-only, it can be compressed by omitting null diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index c095e634..c9ec85c8 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -585,7 +585,7 @@ KMOD_EXPORT int kmod_module_new_from_lookup(struct kmod_ctx *ctx, * * Lookup by module name, without considering possible aliases. This is similar * to kmod_module_new_from_lookup(), but don't consider as source indexes and - * configurations that work with aliases. When succesful, this always resolves + * configurations that work with aliases. When successful, this always resolves * to one and only one module. * * The search order is: 1. module names in modules.dep index; @@ -1352,7 +1352,7 @@ KMOD_EXPORT int kmod_module_probe_insert_module(struct kmod_module *mod, } /* - * Ugly assignement + check. We need to check if we were told to check + * Ugly assignment + check. We need to check if we were told to check * blacklist and also return the reason why we failed. * KMOD_PROBE_APPLY_BLACKLIST_ALIAS_ONLY will take effect only if the * module is an alias, so we also need to check it diff --git a/man/depmod.d.5.scd b/man/depmod.d.5.scd index ec1b0322..b94d1987 100644 --- a/man/depmod.d.5.scd +++ b/man/depmod.d.5.scd @@ -37,7 +37,7 @@ See the COMMANDS section below for more. # CONFIGURATION DIRECTORIES AND PRECEDENCE -Configuration files are read from directories in listed in SYNOPSYS in that +Configuration files are read from directories in listed in SYNOPSIS in that order of precedence. Once a file of a given filename is loaded, any file of the same name in subsequent directories is ignored. diff --git a/man/modprobe.d.5.scd b/man/modprobe.d.5.scd index e6e9c515..48075066 100644 --- a/man/modprobe.d.5.scd +++ b/man/modprobe.d.5.scd @@ -39,7 +39,7 @@ See the COMMANDS section below for more. # CONFIGURATION DIRECTORIES AND PRECEDENCE -Configuration files are read from directories in listed in SYNOPSYS in that +Configuration files are read from directories in listed in SYNOPSIS in that order of precedence. Once a file of a given filename is loaded, any file of the same name in subsequent directories is ignored. diff --git a/shared/util.h b/shared/util.h index 2a377dd6..f479b94f 100644 --- a/shared/util.h +++ b/shared/util.h @@ -59,7 +59,7 @@ unsigned long long get_backoff_delta_msec(unsigned long long t0, unsigned long long *delta); -/* endianess and alignments */ +/* endianness and alignments */ /* ************************************************************************ */ #define get_unaligned(ptr) \ ({ \ diff --git a/testsuite/test-blacklist.c b/testsuite/test-blacklist.c index 64dc58e0..3fb6d3b1 100644 --- a/testsuite/test-blacklist.c +++ b/testsuite/test-blacklist.c @@ -15,7 +15,7 @@ #include -/* good luck bulding a kmod_list outside of the library... makes this blacklist +/* good luck building a kmod_list outside of the library... makes this blacklist * function rather pointless */ #include diff --git a/testsuite/testsuite.c b/testsuite/testsuite.c index a567839f..c1a74a75 100644 --- a/testsuite/testsuite.c +++ b/testsuite/testsuite.c @@ -239,7 +239,7 @@ static inline int test_run_child(const struct test *t, int fdout[2], } if (stat_mstamp(&rootfsst) > stat_mstamp(&stampst)) { - ERR("rootfs %s is dirty, please run 'make rootfs' before runnning this test\n", + ERR("rootfs %s is dirty, please run 'make rootfs' before running this test\n", rootfs); exit(EXIT_FAILURE); } diff --git a/tools/depmod.c b/tools/depmod.c index 8b0a428f..bd9df207 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -1384,7 +1384,7 @@ static int depmod_modules_search(struct depmod *depmod) for (ext = depmod->cfg->externals; ext != NULL; ext = ext->next) { err = depmod_modules_search_path(depmod, ext->path); if (err < 0 && err == -ENOENT) - /* ignore external dir absense */ + /* ignore external dir absence */ continue; }