]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Fix grammar and typos in code comments
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 3 Apr 2026 07:48:33 +0000 (09:48 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 4 Apr 2026 10:22:18 +0000 (12:22 +0200)
No functional change.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
include/debug.h
lib/timer.c
libblkid/src/partitions/gpt.c
libblkid/src/partitions/partitions.c
libmount/src/fs.c
sys-utils/losetup.c

index b34c065a997568ee5237bc63d11456fda6e62c6a..e66bca56ca02185c36f106e2144b5d3e6665e93b 100644 (file)
@@ -9,21 +9,21 @@
 /*
  * util-linux debug macros
  *
- * The debug stuff is based on <name>_debug_mask that controls what outputs is
- * expected. The mask is usually initialized by <NAME>_DEBUG= env.variable
+ * The debug stuff is based on <name>_debug_mask that controls what output is
+ * expected. The mask is usually initialized by <NAME>_DEBUG= env.variable.
  *
  * After successful initialization the flag <PREFIX>_DEBUG_INIT is always set
  * to the mask (this flag is required). The <PREFIX> is usually library API
- * prefix (e.g. MNT_) or program name (e.g. CFDISK_)
+ * prefix (e.g. MNT_) or program name (e.g. CFDISK_).
  *
- * In the code is possible to use
+ * In the code it is possible to use
  *
  *     DBG(FOO, ul_debug("this is output for foo"));
  *
- * where for the FOO has to be defined <PREFIX>_DEBUG_FOO.
+ * where <PREFIX>_DEBUG_FOO has to be defined for FOO output.
  *
  * It's possible to initialize the mask by comma delimited strings with
- * subsystem names (e.g. "LIBMOUNT_DEBUG=options,tab"). In this case is
+ * subsystem names (e.g. "LIBMOUNT_DEBUG=options,tab"). In this case it is
  * necessary to define mask names array. This functionality is optional.
  *
  * It's strongly recommended to use UL_* macros to define/declare/use
index 2f7e90cd46b4b743d5b2d7101319d64046389750..cde0a3932aa5c1fd20e95293c1f30ffcb53b6e12 100644 (file)
@@ -14,7 +14,7 @@
 #include "timer.h"
 
 /*
- * Note the timeout is used for the first signal, then the signal is send
+ * Note the timeout is used for the first signal, then the signal is sent
  * repeatedly in interval ~1% of the original timeout to avoid race in signal
  * handling -- for example you want to use timer to define timeout for a
  * syscall:
@@ -23,8 +23,8 @@
  *      syscall()
  *      cancel_timer()
  *
- * if the timeout is too short than it's possible that the signal is delivered
- * before application enter the syscall function. For this reason timer send
+ * if the timeout is too short then it's possible that the signal is delivered
+ * before application enters the syscall function. For this reason timer sends
  * the signal repeatedly.
  *
  * The applications need to ensure that they can tolerate multiple signal
index dc5bcf3aa44bd395a5ea1f60a4864233a29250ed..f977ed53acf41f3ca2bce7c99c7a1e04751487a4 100644 (file)
@@ -380,7 +380,7 @@ static int probe_gpt_pt(blkid_probe pr,
                        blkid_partlist_increment_partno(ls);
                        continue;
                }
-               /* the partition has to inside usable range */
+               /* the partition has to be inside usable range */
                if (start < fu || start + size - 1 > lu) {
                        DBG(LOWPROBE, ul_debug(
                                "GPT entry[%d] overflows usable area - ignore",
index e838b3db1f7e4d6db5ab477165b085da5b937f1f..f976de064afd99a8aeb7ad0ca57a3b46a0ccce47 100644 (file)
@@ -435,7 +435,7 @@ static blkid_partition new_partition(blkid_partlist ls, blkid_parttable tab)
 
        if (ls->nparts + 1 > ls->nparts_max) {
                /* Linux kernel has DISK_MAX_PARTS=256, but it's too much for
-                * generic Linux machine -- let start with 32 partitions.
+                * generic Linux machine -- let's start with 32 partitions.
                 */
                void *tmp = reallocarray(ls->parts, ls->nparts_max + 32,
                                         sizeof(struct blkid_struct_partition));
@@ -1458,7 +1458,7 @@ blkid_loff_t blkid_partition_get_start(blkid_partition par)
  *          rest of the partition has to be inaccessible for mkfs or mkswap
  *          programs, we need a small space for boot loaders only.
  *
- *          For some unknown reason this (safe) practice is not to used for
+ *          For some unknown reason this (safe) practice is not used for
  *          nested BSD, Solaris, ..., partition tables in Linux kernel.
  *
  * Returns: size of the partition (in 512-sectors).
index 9c8e22cf92c6b3e28e2491ba76ece66ee7cab567..d816a3a58a70c03bd77c779aced9babbaa3451ae 100644 (file)
@@ -1179,7 +1179,7 @@ const char *mnt_fs_get_vfs_options(struct libmnt_fs *fs)
  * mnt_fs_get_vfs_options_all:
  * @fs: fstab/mtab entry pointer
  *
- * Returns: pointer to newlly allocated string (can be freed by free(3)) or
+ * Returns: pointer to newly allocated string (can be freed by free(3)) or
  * NULL in case of error.  The string contains all (including defaults) mount
  * options.
  */
index be8bfd93361a7d694718c780ea3aef3fb1a421f4..2316ad6da7f7f9891dfb8defac19aa02f8c40695 100644 (file)
@@ -574,7 +574,7 @@ static int create_loop(struct loopdev_cxt *lc,
        int hasdev = loopcxt_has_device(lc);
        int rc = 0, ntries = 0;
 
-       /* losetup --find --noverlap file.img */
+       /* losetup --find --nooverlap file.img */
        if (!hasdev && nooverlap) {
                rc = loopcxt_find_overlap(lc, file, offset, sizelimit);
                switch (rc) {
@@ -621,7 +621,7 @@ static int create_loop(struct loopdev_cxt *lc,
        if (hasdev)
                loopcxt_add_device(lc);
 
-       /* losetup --noverlap /dev/loopN file.img */
+       /* losetup --nooverlap /dev/loopN file.img */
        if (hasdev && nooverlap) {
                struct loopdev_cxt lc2;