From: Michal Simek Date: Fri, 14 Jul 2023 08:47:06 +0000 (+0200) Subject: fwu: Show number of attempts in Trial State X-Git-Tag: v2025.01-rc5-pxa1908~920^2~17 X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=b378fdd1ff13bd6df9814a237e741fe2e9bdf7cb;p=u-boot.git 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 Acked-by: Jassi Brar --- diff --git a/lib/fwu_updates/fwu.c b/lib/fwu_updates/fwu.c index 38b50cb762..4d0c8b84b9 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");