summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2012-01-12 17:18:56 -0800
committerGerrit <chrome-bot@google.com>2012-01-17 09:54:29 -0800
commit9415cf739bbf3b50397dc71ee5fbc6dba99576d7 (patch)
tree10113f669d8ff31b56000fc9eb44b1d1c068dab0 /common/main.c
parent51746130a41284ceb487da9220ec707bd025e198 (diff)
Clean up interaction with vboot library.
The implementation of the twostop code blurs the boundary between the vboot_reference API and the U-Boot implementation. This cleans it up a bit. BUG=none TEST=none Change-Id: I518b4c436bbc52a97820705a9cc2ee949a58e438 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/14182 Reviewed-by: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/common/main.c b/common/main.c
index 6e45d39a4a9..a668205d753 100644
--- a/common/main.c
+++ b/common/main.c
@@ -293,7 +293,8 @@ static void secure_boot_cmd(char *cmd)
int rc;
if (!cmd) {
- printf("## Error: Secure boot command not specified\n");
+ fprintf(stderr,
+ "## Error: Secure boot command not specified\n");
goto err;
}
@@ -303,7 +304,7 @@ static void secure_boot_cmd(char *cmd)
/* Find the command directly. */
cmdtp = find_cmd(cmd);
if (!cmdtp) {
- printf("## Error: \"%s\" not defined\n", cmd);
+ fprintf(stderr, "## Error: \"%s\" not defined\n", cmd);
goto err;
}
@@ -311,7 +312,7 @@ static void secure_boot_cmd(char *cmd)
rc = (cmdtp->cmd)(cmdtp, 0, 1, &cmd);
/* Shouldn't ever return from boot command. */
- printf("## Error: \"%s\" returned (code %d)\n", cmd, rc);
+ fprintf(stderr, "## Error: \"%s\" returned (code %d)\n", cmd, rc);
err:
/*
@@ -1485,7 +1486,8 @@ int do_run (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
char *arg;
if ((arg = getenv (argv[i])) == NULL) {
- printf ("## Error: \"%s\" not defined\n", argv[i]);
+ fprintf(stderr,
+ "## Error: \"%s\" not defined\n", argv[i]);
return 1;
}
#ifndef CONFIG_SYS_HUSH_PARSER