diff options
author | Hung-Te Lin <hungte@chromium.org> | 2022-02-14 19:02:24 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-25 11:08:21 +0000 |
commit | f1144f4c25a38a78df7ac302f834d446270428e7 (patch) | |
tree | 51ae96f0236943532ad2c9671b14bd21ef76d8fb /host | |
parent | ca1aa19bc80a0455ba49608ca0a19a9c516c9673 (diff) | |
download | vboot-f1144f4c25a38a78df7ac302f834d446270428e7.tar.gz |
futility: updater: improve updater console output
To help debugging:
- Print equivalent flashrom commands when reading and writing.
- Print <sys-flash> instead of <none> in 'Current system:' message.
- Always print the detected model from libcrosid.
- After writing to flash, print a new line.
BUG=None
TEST=make; build and run test
BRANCH=None
Change-Id: I34a73ec1c968a98a9fca649c65863aa43ca39ca8
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3461090
Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Commit-Queue: Yu-Ping Wu <yupingso@chromium.org>
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/flashrom_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/flashrom_drv.c b/host/lib/flashrom_drv.c index dfc9c83d..18e00ebe 100644 --- a/host/lib/flashrom_drv.c +++ b/host/lib/flashrom_drv.c @@ -102,7 +102,7 @@ int flashrom_read_image(struct firmware_image *image, const char *region, image->data = calloc(1, len); image->size = len; - image->file_name = strdup("<none>"); + image->file_name = strdup("<sys-flash>"); r |= flashrom_image_read(flashctx, image->data, len); |