summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2019-09-18 12:05:57 -0400
committerBrian Behlendorf <[email protected]>2019-09-18 09:05:57 -0700
commitafc8f0a6ffb4dd2dd5e17abc39e035eb7c7bcdc8 (patch)
treeabd36d5ce0a915ab44fb70dedcfb1845943dc290 /lib
parentdd262c9681793e2bae6528297803e627622801f0 (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 'lib')
-rw-r--r--lib/libzfs/libzfs_util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libzfs/libzfs_util.c b/lib/libzfs/libzfs_util.c
index 27d630d4f..de4d8bff9 100644
--- a/lib/libzfs/libzfs_util.c
+++ b/lib/libzfs/libzfs_util.c
@@ -69,21 +69,21 @@ libzfs_error_init(int error)
case ENXIO:
return (dgettext(TEXT_DOMAIN, "The ZFS modules are not "
"loaded.\nTry running '/sbin/modprobe zfs' as root "
- "to load them.\n"));
+ "to load them."));
case ENOENT:
return (dgettext(TEXT_DOMAIN, "/dev/zfs and /proc/self/mounts "
"are required.\nTry running 'udevadm trigger' and 'mount "
- "-t proc proc /proc' as root.\n"));
+ "-t proc proc /proc' as root."));
case ENOEXEC:
return (dgettext(TEXT_DOMAIN, "The ZFS modules cannot be "
"auto-loaded.\nTry running '/sbin/modprobe zfs' as "
- "root to manually load them.\n"));
+ "root to manually load them."));
case EACCES:
return (dgettext(TEXT_DOMAIN, "Permission denied the "
- "ZFS utilities must be run as root.\n"));
+ "ZFS utilities must be run as root."));
default:
return (dgettext(TEXT_DOMAIN, "Failed to initialize the "
- "libzfs library.\n"));
+ "libzfs library."));
}
}