summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2017-02-14 20:15:09 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-02-15 10:47:35 -0800
commit94bd5c5069e6ca0c99754f39152bd4e059968904 (patch)
tree6fa730fea4484958cfa4d6099c9706ccc57066a8
parent8c53e881f8849c5458ba71ff954d8edfc70d6052 (diff)
downloadvboot-94bd5c5069e6ca0c99754f39152bd4e059968904.tar.gz
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>
-rw-r--r--futility/cmd_create.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/futility/cmd_create.c b/futility/cmd_create.c
index bdec20b5..1efa23d9 100644
--- a/futility/cmd_create.c
+++ b/futility/cmd_create.c
@@ -128,7 +128,7 @@ static int vb1_make_keypair()
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 @@ static int vb1_make_keypair()
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 @@ static int vb2_make_keypair()
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 @@ static int vb2_make_keypair()
fprintf(stderr, "unable to write public key\n");
goto done;
}
- fprintf(stderr, "wrote %s\n", outfile);
+ printf("wrote %s\n", outfile);
ret = 0;