nvmecontrol: add newlines where needed for ns command printfs

Sponsored by:		Netflix
Reviewed by:		chuck, jhb
Differential Revision:	https://reviews.freebsd.org/D44681

(cherry picked from commit e39873820da7ddfddb59823efc3421125b92c17a)
This commit is contained in:
Warner Losh 2024-04-16 16:36:54 -06:00 committed by John Baldwin
parent 1dac152478
commit 37109ba0ec

View file

@ -647,7 +647,7 @@ nsdelete(const struct cmd *f, int argc, char *argv[])
open_dev(path, &fd, 1, 1);
} else if (delete_opt.nsid == NONE - 1) {
close(fd);
fprintf(stderr, "No NSID specified");
fprintf(stderr, "No NSID specified\n");
arg_help(argc, argv, f);
}
if (delete_opt.nsid != NONE - 1)
@ -713,7 +713,7 @@ nsattach(const struct cmd *f, int argc, char *argv[])
open_dev(path, &fd, 1, 1);
} else if (attach_opt.nsid == NONE) {
close(fd);
fprintf(stderr, "No NSID specified");
fprintf(stderr, "No NSID specified\n");
arg_help(argc, argv, f);
}
if (attach_opt.nsid != NONE)
@ -783,7 +783,7 @@ nsdetach(const struct cmd *f, int argc, char *argv[])
open_dev(path, &fd, 1, 1);
} else if (detach_opt.nsid == NONE) {
close(fd);
fprintf(stderr, "No NSID specified");
fprintf(stderr, "No NSID specified\n");
arg_help(argc, argv, f);
}
if (detach_opt.nsid != NONE)
@ -860,7 +860,7 @@ nsattached(const struct cmd *f, int argc, char *argv[])
open_dev(path, &fd, 1, 1);
} else if (attached_opt.nsid == NONE) {
close(fd);
fprintf(stderr, "No NSID specified");
fprintf(stderr, "No NSID specified\n");
arg_help(argc, argv, f);
}
if (attached_opt.nsid != NONE)
@ -913,7 +913,7 @@ nsidentify(const struct cmd *f, int argc, char *argv[])
open_dev(path, &fd, 1, 1);
} else if (identify_opt.nsid == NONE) {
close(fd);
fprintf(stderr, "No NSID specified");
fprintf(stderr, "No NSID specified\n");
arg_help(argc, argv, f);
}
if (identify_opt.nsid != NONE)