mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-06 15:01:35 +00:00
rollback: Print RW rollback version as well
This is useful for debugging, to understand if the RW rollback version is ahead of current rollback version. BRANCH=none BUG=b:35586219 TEST=Flash hammer, rollbackinfo in EC console Change-Id: I2634199845f1b35447e0938a35b862f79cb24ffa Reviewed-on: https://chromium-review.googlesource.com/489886 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
a97dae4738
commit
86950ba929
@@ -167,13 +167,17 @@ static int command_rollback_info(int argc, char **argv)
|
||||
{
|
||||
int region, ret, min_region;
|
||||
int32_t rollback_min_version;
|
||||
int32_t rw_rollback_version;
|
||||
|
||||
min_region = get_latest_rollback(&rollback_min_version);
|
||||
|
||||
if (min_region < 0)
|
||||
return EC_ERROR_UNKNOWN;
|
||||
|
||||
rw_rollback_version = system_get_rollback_version(SYSTEM_IMAGE_RW);
|
||||
|
||||
ccprintf("rollback minimum version: %d\n", rollback_min_version);
|
||||
ccprintf("RW rollback version: %d\n", rw_rollback_version);
|
||||
|
||||
for (region = 0; region < ROLLBACK_REGIONS; region++) {
|
||||
struct rollback_data data;
|
||||
|
||||
Reference in New Issue
Block a user