From 2dcd5c19c1b4fe49c7cfd82bee9df3105ddf73d0 Mon Sep 17 00:00:00 2001 From: Nick Sanders Date: Tue, 3 Apr 2018 20:01:13 -0700 Subject: [PATCH] flash_ec: add more verbose options Print stm32mon command in verbose mode. BUG=None BRANCH=None TEST=it prints Signed-off-by: Nick Sanders Change-Id: I4b31d1212c139f64e34e92fa0def662202aa3b41 Reviewed-on: https://chromium-review.googlesource.com/1004436 Commit-Ready: Nick Sanders Tested-by: Nick Sanders Reviewed-by: Aseda Aboagye --- util/flash_ec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/flash_ec b/util/flash_ec index 3602cf641a..889852ae1a 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -798,8 +798,12 @@ function flash_stm32() { ec_reset fi # Unprotect flash, erase, and write + STM32MON_COMMAND="${STM32MON} -d ${EC_UART} -U -u -e -w" + if [ "${FLAGS_verbose}" = ${FLAGS_TRUE} ]; then + echo "${STM32MON_COMMAND}" "${IMG}" + fi timeout -k 10 -s 9 "${FLAGS_timeout}" \ - ${STM32MON} -d ${EC_UART} -U -u -e -w "${IMG}" + ${STM32MON_COMMAND} "${IMG}" # Remove the Application processor reset # TODO(crosbug.com/p/30738): we cannot rely on servo_VARS to restore it if $(servo_has_warm_reset); then