From 915dd183619ac972323b28d0add8440f11b532d8 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 28 May 2024 22:55:27 +0200 Subject: [PATCH] typo: fix typos Typo and indent. --- lib/device/dev-cache.c | 4 ++-- tools/lvcreate.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c index 4fab63b30..cd0c902c5 100644 --- a/lib/device/dev-cache.c +++ b/lib/device/dev-cache.c @@ -2165,7 +2165,7 @@ int setup_device(struct cmd_context *cmd, const char *devname) } if (!S_ISBLK(buf.st_mode)) { - log_error("Invaild device type %s.", devname); + log_error("Invalid device type %s.", devname); return 0; } @@ -2408,7 +2408,7 @@ struct device *setup_dev_in_dev_cache(struct cmd_context *cmd, dev_t devno, cons } if (!S_ISBLK(buf.st_mode)) { - log_error("Invaild device type %s.", devname); + log_error("Invalid device type %s.", devname); return_NULL; } diff --git a/tools/lvcreate.c b/tools/lvcreate.c index 9d8c5d552..b54f9ae4d 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -1925,8 +1925,8 @@ int lvcreate_and_attach_writecache_cmd(struct cmd_context *cmd, int argc, char * }; struct lvcreate_cmdline_params lcp = { 0 }; struct processing_params pp = { - .lp = &lp, - .lcp = &lcp, + .lp = &lp, + .lcp = &lcp, }; int ret; if (!_lvcreate_params(cmd, argc, argv, &lp, &lcp)) { @@ -1997,8 +1997,8 @@ int lvcreate_and_attach_cache_cmd(struct cmd_context *cmd, int argc, char **argv }; struct lvcreate_cmdline_params lcp = { 0 }; struct processing_params pp = { - .lp = &lp, - .lcp = &lcp, + .lp = &lp, + .lcp = &lcp, }; int ret;