diff options
author | Michal Simek <michal.simek@amd.com> | 2023-07-14 10:47:06 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-07-25 12:44:46 -0400 |
commit | b378fdd1ff13bd6df9814a237e741fe2e9bdf7cb (patch) | |
tree | 1163dbabe1c6eaf4784ac23e54b8dd036dca98c5 | |
parent | 395ab12b5f45bc5163f610f07695c73940bfae48 (diff) |
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>
-rw-r--r-- | lib/fwu_updates/fwu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fwu_updates/fwu.c b/lib/fwu_updates/fwu.c index 38b50cb7628..4d0c8b84b9d 100644 --- a/lib/fwu_updates/fwu.c +++ b/lib/fwu_updates/fwu.c @@ -95,6 +95,8 @@ static int fwu_trial_count_update(void) log_err("Unable to revert active_index\n"); ret = 1; } 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); if (ret) log_err("Unable to increment TrialStateCtr variable\n"); |