aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Hau <yuanyanghau@gmail.com>2024-08-20 23:48:19 +0800
committerKarel Zak <kzak@redhat.com>2024-08-21 10:15:25 +0200
commit96ac92a3d2734f70562f210564f5c3dde60f722a (patch)
tree068fdd6fee40ecf1070617a80d07dc9b1b9c1fc5
parent98c888fabce3077a6fb94188524d84fdea6591ba (diff)
downloadutil-linux-96ac92a3d2734f70562f210564f5c3dde60f722a.tar.gz
fix typos
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--misc-utils/findmnt-verify.c6
-rw-r--r--misc-utils/lsblk.c4
-rw-r--r--sys-utils/setpriv-landlock.c2
-rw-r--r--tests/helpers/test_mkfds.c6
4 files changed, 9 insertions, 9 deletions
diff --git a/misc-utils/findmnt-verify.c b/misc-utils/findmnt-verify.c
index 845f31fdab..ecb51d9cfc 100644
--- a/misc-utils/findmnt-verify.c
+++ b/misc-utils/findmnt-verify.c
@@ -449,12 +449,12 @@ static int verify_fstype(struct verify_context *vfy)
realtype = mnt_get_fstype(src, &ambi, cache);
if (!realtype) {
- const char *raeson = errno ? strerror(errno) : _("reason unknown");
+ const char *reason = errno ? strerror(errno) : _("reason unknown");
if (isauto)
- verify_err(vfy, _("cannot detect on-disk filesystem type (%s)"), raeson);
+ verify_err(vfy, _("cannot detect on-disk filesystem type (%s)"), reason);
else
- verify_warn(vfy, _("cannot detect on-disk filesystem type (%s)"), raeson);
+ verify_warn(vfy, _("cannot detect on-disk filesystem type (%s)"), reason);
goto done;
}
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c
index 41e9470ea7..20c4de238c 100644
--- a/misc-utils/lsblk.c
+++ b/misc-utils/lsblk.c
@@ -2311,8 +2311,8 @@ static void __attribute__((__noreturn__)) usage(void)
fputs(_(" -M, --merge group parents of sub-trees (usable for RAIDs, Multi-path)\n"), out);
fputs(_(" -O, --output-all output all columns\n"), out);
fputs(_(" -P, --pairs use key=\"value\" output format\n"), out);
- fputs(_(" -Q, --filter <expr> print only lines maching the expression\n"), out);
- fputs(_(" --highlight <expr> colorize lines maching the expression\n"), out);
+ fputs(_(" -Q, --filter <expr> print only lines matching the expression\n"), out);
+ fputs(_(" --highlight <expr> colorize lines matching the expression\n"), out);
fputs(_(" --ct-filter <expr> restrict the next counter\n"), out);
fputs(_(" --ct <name>[:<param>[:<func>]] define a custom counter\n"), out);
fputs(_(" -S, --scsi output info about SCSI devices\n"), out);
diff --git a/sys-utils/setpriv-landlock.c b/sys-utils/setpriv-landlock.c
index 00ad38c61c..efbacafd0b 100644
--- a/sys-utils/setpriv-landlock.c
+++ b/sys-utils/setpriv-landlock.c
@@ -191,7 +191,7 @@ void do_landlock(const struct setpriv_landlock_opts *opts)
err(SETPRIV_EXIT_PRIVERR, _("disallow granting new privileges for landlock failed"));
if (landlock_restrict_self(fd, 0) == -1)
- err(SETPRIV_EXIT_PRIVERR, _("landlock_restrict_self faild"));
+ err(SETPRIV_EXIT_PRIVERR, _("landlock_restrict_self failed"));
}
void usage_setpriv(FILE *out)
diff --git a/tests/helpers/test_mkfds.c b/tests/helpers/test_mkfds.c
index 60ebdd6761..a99a28f4d4 100644
--- a/tests/helpers/test_mkfds.c
+++ b/tests/helpers/test_mkfds.c
@@ -1693,7 +1693,7 @@ static void *make_unix_in_new_netns(const struct factory *factory, struct fdesc
close_fdesc(tmp_netns, NULL);
close_unix_socket(sd, fdescs[2].data);
errno = e;
- err(EXIT_FAILURE, "failed to swich back to the original net namespace");
+ err(EXIT_FAILURE, "failed to switch back to the original net namespace");
}
return NULL;
@@ -4156,13 +4156,13 @@ static const struct factory factories[] = {
{
.name = "interval",
.type = PTYPE_UINTEGER,
- .desc = "inteval in seconds",
+ .desc = "interval in seconds",
.defv.uinteger = 10,
},
{
.name = "interval-nanofrac",
.type = PTYPE_UINTEGER,
- .desc = "nsec part of inteval",
+ .desc = "nsec part of interval",
.defv.uinteger = 0,
},