Error messages should end with a newline character.
Add "\n" to the end of error messages which don't already have one. Also spell "opened" correctly. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
parent
fb12a74540
commit
8e5b52cdda
4
Build.c
4
Build.c
|
@ -181,7 +181,7 @@ int Build(char *mddev, struct mddev_dev *devlist,
|
|||
int major = BITMAP_MAJOR_HI;
|
||||
#if 0
|
||||
if (s->bitmap_chunk == UnSet) {
|
||||
pr_err("%s cannot be openned.", s->bitmap_file);
|
||||
pr_err("%s cannot be opened.\n", s->bitmap_file);
|
||||
goto abort;
|
||||
}
|
||||
#endif
|
||||
|
@ -193,7 +193,7 @@ int Build(char *mddev, struct mddev_dev *devlist,
|
|||
}
|
||||
bitmap_fd = open(s->bitmap_file, O_RDWR);
|
||||
if (bitmap_fd < 0) {
|
||||
pr_err("%s cannot be openned.", s->bitmap_file);
|
||||
pr_err("%s cannot be opened.\n", s->bitmap_file);
|
||||
goto abort;
|
||||
}
|
||||
}
|
||||
|
|
4
Grow.c
4
Grow.c
|
@ -3202,7 +3202,7 @@ static int reshape_array(char *container, int fd, char *devname,
|
|||
|
||||
if (info2) {
|
||||
if (sysfs_init(info2, fd, st->devnm)) {
|
||||
pr_err("unable to initialize sysfs for %s",
|
||||
pr_err("unable to initialize sysfs for %s\n",
|
||||
st->devnm);
|
||||
free(info2);
|
||||
goto release;
|
||||
|
@ -5146,7 +5146,7 @@ int Grow_continue_command(char *devname, int fd,
|
|||
}
|
||||
|
||||
if (sysfs_init(content, fd2, mdstat->devnm)) {
|
||||
pr_err("Unable to initialize sysfs for %s, Grow cannot continue",
|
||||
pr_err("Unable to initialize sysfs for %s, Grow cannot continue.\n",
|
||||
mdstat->devnm);
|
||||
ret_val = 1;
|
||||
close(fd2);
|
||||
|
|
2
Manage.c
2
Manage.c
|
@ -1417,7 +1417,7 @@ int Manage_subdevs(char *devname, int fd,
|
|||
}
|
||||
add_devlist = conf_get_devs();
|
||||
if (add_devlist == NULL) {
|
||||
pr_err("no devices to scan for missing members.");
|
||||
pr_err("no devices to scan for missing members.\n");
|
||||
continue;
|
||||
}
|
||||
for (dp = &add_devlist; *dp; dp = & (*dp)->next)
|
||||
|
|
2
mdopen.c
2
mdopen.c
|
@ -198,7 +198,7 @@ int create_mddev(char *dev, char *name, int autof, int trustworthy,
|
|||
return -1;
|
||||
}
|
||||
if (cname[0] == 0) {
|
||||
pr_err("%s is an invalid name for an md device (empty!).", dev);
|
||||
pr_err("%s is an invalid name for an md device (empty!).\n", dev);
|
||||
return -1;
|
||||
}
|
||||
if (num < 0) {
|
||||
|
|
Loading…
Reference in New Issue