]> granicus.if.org Git - zfs/commitdiff
zfs: missing newline character in zfs_do_channel_program() error message
authorloli10K <loli10K@users.noreply.github.com>
Fri, 24 May 2019 20:54:36 +0000 (22:54 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 7 Jun 2019 19:39:13 +0000 (12:39 -0700)
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

cmd/zfs/zfs_main.c

index 2d97988a028b904ce439399928086b8713490d88..6929a224636a1584385f1b2766f7c6e4bf518387 100644 (file)
@@ -28,6 +28,7 @@
  * Copyright 2016 Igor Kozhukhov <ikozhukhov@gmail.com>.
  * Copyright 2016 Nexenta Systems, Inc.
  * Copyright (c) 2019 Datto Inc.
+ * Copyright (c) 2019, loli10K <ezomori.nozomu@gmail.com>
  */
 
 #include <assert.h>
@@ -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);