diff options
author | Hung-Te Lin <hungte@chromium.org> | 2018-09-26 13:34:33 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-09-27 19:43:57 -0700 |
commit | 2887e2e10389915d7df2693418fed630ab883db7 (patch) | |
tree | d75948b9922a45bbd9b5e90c3a3d0a19746879ec | |
parent | cff44e7bdad016c35029af4cc25fffef361f598d (diff) | |
download | vboot-2887e2e10389915d7df2693418fed630ab883db7.tar.gz |
futility: update: Revise error messages
Error messages should be printed using ERROR when being outside
the main updater function (do_update).
BRANCH=None
BUG=None
TEST=make futil; sudo tests/futility/run_test_scripts.sh $(pwd)/build/futility
Change-Id: I037c99b6e4fbb6a05fd95d64a87d187d8531da39
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1245641
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | futility/cmd_update.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/futility/cmd_update.c b/futility/cmd_update.c index ed9ee835..632296c2 100644 --- a/futility/cmd_update.c +++ b/futility/cmd_update.c @@ -1277,7 +1277,7 @@ static int verify_keyblock(const struct vb2_keyblock *block, free(new_block); if (r != VB2_SUCCESS) { - ERROR("Error verifying key block."); + ERROR("Failed verifying key block."); return -1; } return 0; @@ -1628,7 +1628,7 @@ static enum updater_error_codes update_try_rw_firmware( printf("Checking %s contents...\n", target); if (!firmware_section_exists(image_to, target)) { - Error("Cannot find section '%s' on firmware image: %s\n", + ERROR("Cannot find section '%s' on firmware image: %s", target, image_to->file_name); return UPDATE_ERR_INVALID_IMAGE; } |