futility: create: Output "wrote XX.vb[pub|pri]k" to stdout
Let's keep stderr for actual errors.
BRANCH=none
BUG=chromium:690773
TEST=make runtests
TEST=futility create key.pem out > /dev/null is quiet
Change-Id: Id7ce658a0dc08f45d4d035b68e355e49d9717674
Reviewed-on: https://chromium-review.googlesource.com/442524
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
diff --git a/futility/cmd_create.c b/futility/cmd_create.c
index bdec20b..1efa23d 100644
--- a/futility/cmd_create.c
+++ b/futility/cmd_create.c
@@ -128,7 +128,7 @@
fprintf(stderr, "unable to write private key\n");
goto done;
}
- fprintf(stderr, "wrote %s\n", outfile);
+ printf("wrote %s\n", outfile);
/* Create the public key */
ret = vb_keyb_from_rsa(rsa_key, &keyb_data, &keyb_size);
@@ -148,7 +148,7 @@
fprintf(stderr, "unable to write public key\n");
goto done;
}
- fprintf(stderr, "wrote %s\n", outfile);
+ printf("wrote %s\n", outfile);
ret = 0;
@@ -272,7 +272,7 @@
fprintf(stderr, "unable to write private key\n");
goto done;
}
- fprintf(stderr, "wrote %s\n", outfile);
+ printf("wrote %s\n", outfile);
}
strcpy(outext, ".vbpubk2");
@@ -280,7 +280,7 @@
fprintf(stderr, "unable to write public key\n");
goto done;
}
- fprintf(stderr, "wrote %s\n", outfile);
+ printf("wrote %s\n", outfile);
ret = 0;