Skip to content

Commit

Permalink
typo: fix typos
Browse files Browse the repository at this point in the history
Typo and indent.
  • Loading branch information
Zdenek Kabelac committed Jun 3, 2024
1 parent 85e0636 commit 915dd18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/device/dev-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down
8 changes: 4 additions & 4 deletions tools/lvcreate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 915dd18

Please sign in to comment.