summaryrefslogtreecommitdiff
path: root/chip/g/upgrade_fw.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2016-11-25 12:44:06 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-11-28 20:53:53 -0800
commit56310c97bf25220c9124b97f3920ec74e67a213f (patch)
tree72298b8a196875111a7116fa19ec0442ed9b4ed3 /chip/g/upgrade_fw.c
parent6eae52a0944136f4745770be0233dc1bef6cd2a1 (diff)
downloadchrome-ec-56310c97bf25220c9124b97f3920ec74e67a213f.tar.gz
usb_updater: improve debugability
When usb update errors happen it helps a lot to be able to see the actual error code returned by the target and where the error was generated. This patch adds a few printouts to help with debugging. BRANCH=none BUG=none TEST=observed proper error messages generated while debugging introduction of extension/vendor commands transfer over USB. Change-Id: I06c77e7467f7f9547704c88c4b673866fb2e6032 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/414947 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'chip/g/upgrade_fw.c')
-rw-r--r--chip/g/upgrade_fw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/g/upgrade_fw.c b/chip/g/upgrade_fw.c
index f77d4145e8..d5be0f4491 100644
--- a/chip/g/upgrade_fw.c
+++ b/chip/g/upgrade_fw.c
@@ -214,6 +214,7 @@ void fw_upgrade_command_handler(void *body,
*/
if (!valid_sections.ro_top_offset ||
!valid_sections.rw_top_offset) {
+ CPRINTF("%s:%d\n", __func__, __LINE__);
rpdu->return_value = htobe32(UPGRADE_GEN_ERROR);
return;
}