mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 20:58:22 +00:00
fwu: Show number of attempts in Trial State
It is not visible anywhere in Trial State if this is the first, second, etc attempt that's why show a message to be aware about status. Signed-off-by: Michal Simek <michal.simek@amd.com> Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
This commit is contained in:
parent
395ab12b5f
commit
b378fdd1ff
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,8 @@ static int fwu_trial_count_update(void)
|
||||||
log_err("Unable to revert active_index\n");
|
log_err("Unable to revert active_index\n");
|
||||||
ret = 1;
|
ret = 1;
|
||||||
} else {
|
} else {
|
||||||
|
log_info("Trial State count: attempt %d out of %d\n",
|
||||||
|
trial_state_ctr, CONFIG_FWU_TRIAL_STATE_CNT);
|
||||||
ret = trial_counter_update(&trial_state_ctr);
|
ret = trial_counter_update(&trial_state_ctr);
|
||||||
if (ret)
|
if (ret)
|
||||||
log_err("Unable to increment TrialStateCtr variable\n");
|
log_err("Unable to increment TrialStateCtr variable\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue