summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSebastian Rasmussen2016-05-29 23:11:53 +0200
committerSebastian Rasmussen2016-05-31 23:40:21 +0200
commit9e93004171eb0c4c288051b2d7bb37f97a0ae430 (patch)
tree369493906bb3c1c6f2554609c737ada0230f4b2e /lib
parentdocs: Fix various typos (diff)
downloadkernel-qcow2-util-linux-9e93004171eb0c4c288051b2d7bb37f97a0ae430.tar.gz
kernel-qcow2-util-linux-9e93004171eb0c4c288051b2d7bb37f97a0ae430.tar.xz
kernel-qcow2-util-linux-9e93004171eb0c4c288051b2d7bb37f97a0ae430.zip
misc: Fix various typos
Fix various typos in error messages, warnings, debug strings, comments and names of static functions. Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/blkdev.c2
-rw-r--r--lib/canonicalize.c2
-rw-r--r--lib/colors.c4
-rw-r--r--lib/crc32.c2
-rw-r--r--lib/langinfo.c2
-rw-r--r--lib/loopdev.c6
-rw-r--r--lib/plymouth-ctrl.c6
-rw-r--r--lib/strutils.c2
-rw-r--r--lib/sysfs.c6
9 files changed, 16 insertions, 16 deletions
diff --git a/lib/blkdev.c b/lib/blkdev.c
index 8a5a52dfa..fa42b86be 100644
--- a/lib/blkdev.c
+++ b/lib/blkdev.c
@@ -253,7 +253,7 @@ int blkdev_is_misaligned(int fd)
if (ioctl(fd, BLKALIGNOFF, &aligned) < 0)
return 0; /* probably kernel < 2.6.32 */
/*
- * Note that kernel returns -1 as alignement offset if no compatible
+ * Note that kernel returns -1 as alignment offset if no compatible
* sizes and alignments exist for stacked devices
*/
return aligned != 0 ? 1 : 0;
diff --git a/lib/canonicalize.c b/lib/canonicalize.c
index 93782e894..b600248c7 100644
--- a/lib/canonicalize.c
+++ b/lib/canonicalize.c
@@ -67,7 +67,7 @@ static int is_dm_devname(char *canonical, char **name)
}
/*
- * This function does not cannonicalize the path! It just prepends CWD before a
+ * This function does not canonicalize the path! It just prepends CWD before a
* relative path. If the path is no relative than returns NULL. The path does
* not have to exist.
*/
diff --git a/lib/colors.c b/lib/colors.c
index 933bb810a..e5a27ba25 100644
--- a/lib/colors.c
+++ b/lib/colors.c
@@ -265,7 +265,7 @@ static int colors_readdir(struct ul_color_ctl *cc, const char *dirname)
&tk_term, &tk_termsz, &type) != 0)
continue;
- /* count teoretical score before we check names to avoid
+ /* count theoretical score before we check names to avoid
* unnecessary strcmp() */
if (tk_name)
score += 20;
@@ -400,7 +400,7 @@ static int cn_sequence(const char *str, char **seq)
*out++ = '#'; /* Hash mark */
break;
case '?':
- *out++ = '?'; /* Qestion mark */
+ *out++ = '?'; /* Question mark */
break;
default:
*out++ = *in;
diff --git a/lib/crc32.c b/lib/crc32.c
index 0c986288d..a5e3216b8 100644
--- a/lib/crc32.c
+++ b/lib/crc32.c
@@ -19,7 +19,7 @@
* order from highest-order term to lowest-order term. UARTs transmit
* characters in order from LSB to MSB. By storing the CRC this way,
* we hand it to the UART in the order low-byte to high-byte; the UART
- * sends each low-bit to hight-bit; and the result is transmission bit
+ * sends each low-bit to high-bit; and the result is transmission bit
* by bit from highest- to lowest-order term without requiring any bit
* shuffling on our part. Reception works similarly.
*
diff --git a/lib/langinfo.c b/lib/langinfo.c
index deeab9b11..2aa0a3bbd 100644
--- a/lib/langinfo.c
+++ b/lib/langinfo.c
@@ -1,6 +1,6 @@
/*
* This is callback solution for systems without nl_langinfo(), this function
- * returns hardcoded and on locale setting independed value.
+ * returns hardcoded and on locale setting indepndent value.
*
* See langinfo.h man page for more details.
*
diff --git a/lib/loopdev.c b/lib/loopdev.c
index 26c183e8d..73bbf8ba4 100644
--- a/lib/loopdev.c
+++ b/lib/loopdev.c
@@ -857,7 +857,7 @@ int loopcxt_get_backing_inode(struct loopdev_cxt *lc, ino_t *ino)
*
* Notes:
* - kernels < 3.2 support partitioned loop devices and PT scanning
- * only if max_part= module paremeter is non-zero
+ * only if max_part= module parameter is non-zero
*
* - kernels >= 3.2 always support partitioned loop devices
*
@@ -889,7 +889,7 @@ int loopmod_supports_partscan(void)
* @lc: context
*
* Returns: 1 if the partscan flags is set *or* (for old kernels) partitions
- * scannig is enabled for all loop devices.
+ * scanning is enabled for all loop devices.
*/
int loopcxt_is_partscan(struct loopdev_cxt *lc)
{
@@ -1168,7 +1168,7 @@ static int loopcxt_check_size(struct loopdev_cxt *lc, int file_fd)
if (expected_size != size) {
DBG(CXT, ul_debugobj(lc, "warning: loopdev and expected "
- "size dismatch (%ju/%ju)",
+ "size mismatch (%ju/%ju)",
size, expected_size));
if (loopcxt_set_capacity(lc)) {
diff --git a/lib/plymouth-ctrl.c b/lib/plymouth-ctrl.c
index 2a1b2ce3e..6cda7c80f 100644
--- a/lib/plymouth-ctrl.c
+++ b/lib/plymouth-ctrl.c
@@ -1,8 +1,8 @@
/*
- * plymouth-ctrl.c Simply communcations with plymouthd
+ * plymouth-ctrl.c Simply communications with plymouthd
* to avoid forked sub processes and/or
- * misssed plymouth send commands tool
- * due a plymouthd replacment.
+ * missed plymouth send commands tool
+ * due a plymouthd replacement.
*
* Copyright (c) 2016 SUSE Linux GmbH, All rights reserved.
* Copyright (c) 2016 Werner Fink <werner@suse.de>
diff --git a/lib/strutils.c b/lib/strutils.c
index d5bb2db13..8c47c819f 100644
--- a/lib/strutils.c
+++ b/lib/strutils.c
@@ -44,7 +44,7 @@ static int do_scale_by_power (uintmax_t *x, int base, int power)
* for example:
* 10KB = 10000
*
- * The optinal 'power' variable returns number associated with used suffix
+ * The optional 'power' variable returns number associated with used suffix
* {K,M,G,T,P,E,Z,Y} = {1,2,3,4,5,6,7,8}.
*
* The function also supports decimal point, for example:
diff --git a/lib/sysfs.c b/lib/sysfs.c
index 9e973a4f7..b6501291c 100644
--- a/lib/sysfs.c
+++ b/lib/sysfs.c
@@ -623,7 +623,7 @@ static char *get_subsystem(char *chain, char *buf, size_t bufsz)
}
/*
- * Returns complete path to the device, the patch contains all all sybsystems
+ * Returns complete path to the device, the patch contains all all subsystems
* used for the device.
*/
char *sysfs_get_devchain(struct sysfs_cxt *cxt, char *buf, size_t bufsz)
@@ -741,7 +741,7 @@ static int get_dm_wholedisk(struct sysfs_cxt *cxt, char *diskname,
}
/*
- * Returns by @diskdevno whole disk device devno and (optionaly) by
+ * Returns by @diskdevno whole disk device devno and (optionally) by
* @diskname the whole disk device name.
*/
int sysfs_devno_to_wholedisk(dev_t dev, char *diskname,
@@ -758,7 +758,7 @@ int sysfs_devno_to_wholedisk(dev_t dev, char *diskname,
/*
* Extra case for partitions mapped by device-mapper.
*
- * All regualar partitions (added by BLKPG ioctl or kernel PT
+ * All regular partitions (added by BLKPG ioctl or kernel PT
* parser) have the /sys/.../partition file. The partitions
* mapped by DM don't have such file, but they have "part"
* prefix in DM UUID.