summaryrefslogtreecommitdiffstats
path: root/cmd/zpool/zpool_main.c
diff options
context:
space:
mode:
authorJacek FefliƄski <[email protected]>2014-12-10 13:24:14 +0100
committerBrian Behlendorf <[email protected]>2014-12-18 17:38:18 -0800
commitc66989baaeee5bb4ac06cebfad513e1253f22564 (patch)
treef3ab67434d7af8a8f718f535140922744245d280 /cmd/zpool/zpool_main.c
parent1b95fd5d708bcf7de79740a0cd08de43caa0d847 (diff)
zpool upgrade return errors to stderr instead of stdout
Signed-off-by: Jacek Feflinski <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2955
Diffstat (limited to 'cmd/zpool/zpool_main.c')
-rw-r--r--cmd/zpool/zpool_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c
index 2b6ff4a65..7eb8ba8da 100644
--- a/cmd/zpool/zpool_main.c
+++ b/cmd/zpool/zpool_main.c
@@ -4685,7 +4685,7 @@ upgrade_version(zpool_handle_t *zhp, uint64_t version)
return (ret);
if (unsupp_fs) {
- (void) printf(gettext("Upgrade not performed due to %d "
+ (void) fprintf(stderr, gettext("Upgrade not performed due to %d "
"unsupported filesystems (max v%d).\n"),
unsupp_fs, (int) ZPL_VERSION);
return (1);
@@ -4900,7 +4900,7 @@ upgrade_one(zpool_handle_t *zhp, void *data)
int ret;
if (strcmp("log", zpool_get_name(zhp)) == 0) {
- (void) printf(gettext("'log' is now a reserved word\n"
+ (void) fprintf(stderr, gettext("'log' is now a reserved word\n"
"Pool 'log' must be renamed using export and import"
" to upgrade.\n"));
return (1);