diff options
author | Hung-Te Lin <hungte@chromium.org> | 2014-05-21 11:15:57 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-05-22 08:11:58 +0000 |
commit | 8f7b7055a134d003920b4a67a951d23ad7b1f939 (patch) | |
tree | 1770be64acbc16222625a5e435012144b5ebeb29 | |
parent | 32c8ee3e2598d5b9d6d7447155ca1580c6938904 (diff) | |
download | vboot-8f7b7055a134d003920b4a67a951d23ad7b1f939.tar.gz |
lib: Handle return error code of VbExDisplaySetDimension correctly.stabilize-5899.B
The return value of VbExDisplaySetDimension should be handled as VbError_t,
which means we should print error message when it's not zero.
Also add the return code to debug message.
BRANCH=none
BUG=none
TEST=emerge-nyan coreboot chromeos-bootimage, enter recovery screen.
Not seeing error messages anymore.
Change-Id: Icafdfd933d799e8496fedcf1633339065c6962a3
Reviewed-on: https://chromium-review.googlesource.com/200679
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
-rw-r--r-- | firmware/lib/vboot_display.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/lib/vboot_display.c b/firmware/lib/vboot_display.c index 669c4e8d..6e0c93ac 100644 --- a/firmware/lib/vboot_display.c +++ b/firmware/lib/vboot_display.c @@ -239,11 +239,11 @@ VbError_t VbDisplayScreenFromGBB(VbCommonParams *cparams, uint32_t screen, ret = VbExDisplaySetDimension( image_info.width, image_info.height); - if (!ret) { + if (ret) { VBDEBUG(("VbExDisplaySetDimension" - "(%d,%d): failed.\n", + "(%d,%d): failed (%#x).\n", image_info.width, - image_info.height)); + image_info.height, ret)); } } |