From: loli10K Date: Fri, 24 May 2019 20:54:36 +0000 (+0200) Subject: zfs: missing newline character in zfs_do_channel_program() error message X-Git-Tag: zfs-0.8.1~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd75d5f7104a920126e4f28be9701dd9241ac191;p=zfs zfs: missing newline character in zfs_do_channel_program() error message This commit simply adds a missing newline ("\n") character to the error message printed by the zfs command when the provided pool parameter can't be found. Reviewed-by: Chris Dunlop Reviewed-by: Giuseppe Di Natale Reviewed-by: Igor Kozhukhov Reviewed-by: George Melikov Signed-off-by: loli10K Closes #8783 --- diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c index 2d97988a0..6929a2246 100644 --- a/cmd/zfs/zfs_main.c +++ b/cmd/zfs/zfs_main.c @@ -28,6 +28,7 @@ * Copyright 2016 Igor Kozhukhov . * Copyright 2016 Nexenta Systems, Inc. * Copyright (c) 2019 Datto Inc. + * Copyright (c) 2019, loli10K */ #include @@ -7522,7 +7523,7 @@ zfs_do_channel_program(int argc, char **argv) } if ((zhp = zpool_open(g_zfs, poolname)) == NULL) { - (void) fprintf(stderr, gettext("cannot open pool '%s'"), + (void) fprintf(stderr, gettext("cannot open pool '%s'\n"), poolname); if (fd != 0) (void) close(fd);