git: 37109ba0ec1f - stable/14 - nvmecontrol: add newlines where needed for ns command printfs

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 27 Aug 2024 01:06:49 UTC
The branch stable/14 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=37109ba0ec1f5d17f5e006ec8f7a76aca4d7765d

commit 37109ba0ec1f5d17f5e006ec8f7a76aca4d7765d
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-04-16 22:36:54 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-08-26 18:31:03 +0000

    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)
---
 sbin/nvmecontrol/ns.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sbin/nvmecontrol/ns.c b/sbin/nvmecontrol/ns.c
index 27f622162c7d..70392af19111 100644
--- a/sbin/nvmecontrol/ns.c
+++ b/sbin/nvmecontrol/ns.c
@@ -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)