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 <chris@onthe.net.au>
Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8783
This commit is contained in:
loli10K 2019-05-24 22:54:36 +02:00 committed by Brian Behlendorf
parent c6bbacebc8
commit cd75d5f710
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@
* Copyright 2016 Igor Kozhukhov <ikozhukhov@gmail.com>. * Copyright 2016 Igor Kozhukhov <ikozhukhov@gmail.com>.
* Copyright 2016 Nexenta Systems, Inc. * Copyright 2016 Nexenta Systems, Inc.
* Copyright (c) 2019 Datto Inc. * Copyright (c) 2019 Datto Inc.
* Copyright (c) 2019, loli10K <ezomori.nozomu@gmail.com>
*/ */
#include <assert.h> #include <assert.h>
@ -7522,7 +7523,7 @@ zfs_do_channel_program(int argc, char **argv)
} }
if ((zhp = zpool_open(g_zfs, poolname)) == NULL) { 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); poolname);
if (fd != 0) if (fd != 0)
(void) close(fd); (void) close(fd);