From 96ac92a3d2734f70562f210564f5c3dde60f722a Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Tue, 20 Aug 2024 23:48:19 +0800 Subject: [PATCH] fix typos Signed-off-by: Karel Zak --- misc-utils/findmnt-verify.c | 6 +++--- misc-utils/lsblk.c | 4 ++-- sys-utils/setpriv-landlock.c | 2 +- tests/helpers/test_mkfds.c | 6 +++--- 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 print only lines maching the expression\n"), out); - fputs(_(" --highlight colorize lines maching the expression\n"), out); + fputs(_(" -Q, --filter print only lines matching the expression\n"), out); + fputs(_(" --highlight colorize lines matching the expression\n"), out); fputs(_(" --ct-filter restrict the next counter\n"), out); fputs(_(" --ct [:[:]] 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, }, -- 2.47.3