summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2019-09-18 12:05:57 -0400
committerTony Hutter <[email protected]>2020-01-22 13:49:01 -0800
commit3ec97ba6f181cf7dd2b000139790d8abf9758d1b (patch)
tree33fde6a9460676725d3e0617c80a1a186b216763 /cmd
parent444df1051c82c8c6285e46148e524477df12d5c9 (diff)
Refactor libzfs_error_init newlines
Move the trailing newlines from the error message strings to the format strings to more closely match the other error messages. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #9330
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mount_zfs/mount_zfs.c2
-rw-r--r--cmd/zfs/zfs_main.c2
-rw-r--r--cmd/zinject/zinject.c2
-rw-r--r--cmd/zpool/zpool_main.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/cmd/mount_zfs/mount_zfs.c b/cmd/mount_zfs/mount_zfs.c
index a9b1e166b..a37dd6f53 100644
--- a/cmd/mount_zfs/mount_zfs.c
+++ b/cmd/mount_zfs/mount_zfs.c
@@ -489,7 +489,7 @@ main(int argc, char **argv)
zfsutil = 1;
if ((g_zfs = libzfs_init()) == NULL) {
- (void) fprintf(stderr, "%s", libzfs_error_init(errno));
+ (void) fprintf(stderr, "%s\n", libzfs_error_init(errno));
return (MOUNT_SYSERR);
}
diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c
index 3dd2b3886..cd8c0aca0 100644
--- a/cmd/zfs/zfs_main.c
+++ b/cmd/zfs/zfs_main.c
@@ -8172,7 +8172,7 @@ main(int argc, char **argv)
return (zfs_do_version(argc, argv));
if ((g_zfs = libzfs_init()) == NULL) {
- (void) fprintf(stderr, "%s", libzfs_error_init(errno));
+ (void) fprintf(stderr, "%s\n", libzfs_error_init(errno));
return (1);
}
diff --git a/cmd/zinject/zinject.c b/cmd/zinject/zinject.c
index cff7f861a..1795bfd45 100644
--- a/cmd/zinject/zinject.c
+++ b/cmd/zinject/zinject.c
@@ -763,7 +763,7 @@ main(int argc, char **argv)
uint32_t dvas = 0;
if ((g_zfs = libzfs_init()) == NULL) {
- (void) fprintf(stderr, "%s", libzfs_error_init(errno));
+ (void) fprintf(stderr, "%s\n", libzfs_error_init(errno));
return (1);
}
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c
index b9c7462b6..2c5c88e69 100644
--- a/cmd/zpool/zpool_main.c
+++ b/cmd/zpool/zpool_main.c
@@ -9282,7 +9282,7 @@ main(int argc, char **argv)
return (zpool_do_version(argc, argv));
if ((g_zfs = libzfs_init()) == NULL) {
- (void) fprintf(stderr, "%s", libzfs_error_init(errno));
+ (void) fprintf(stderr, "%s\n", libzfs_error_init(errno));
return (1);
}