File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,9 @@ fsm_auth_hdl(bl_fsm_ctx_s * const ctx)
313
313
// If transfer failed, mark the check as failed.
314
314
return BL_FSM_CHECK_FAIL_EVT ;
315
315
}
316
+ #ifdef DEBUG_LOG
317
+ printf ("Secondary image auth failed\r\n" );
318
+ #endif
316
319
317
320
// If authentication failed, mark the check as failed.
318
321
return BL_FSM_CHECK_FAIL_EVT ;
@@ -339,11 +342,13 @@ fsm_auth_hdl(bl_fsm_ctx_s * const ctx)
339
342
return BL_FSM_CHECK_PASS_EVT ;
340
343
}
341
344
342
- // If transfer failed, recovery failed, so raise an error.
343
345
return BL_FSM_ERR_OR_NONE_EVT ;
344
346
}
345
347
346
348
// If authentication failed, mark the check as failed.
349
+ #ifdef DEBUG_LOG
350
+ printf ("Secondary image auth failed\r\n" );
351
+ #endif
347
352
return BL_FSM_ERR_OR_NONE_EVT ;
348
353
}
349
354
#ifdef DEBUG_LOG
@@ -356,7 +361,9 @@ fsm_auth_hdl(bl_fsm_ctx_s * const ctx)
356
361
// If auth is ok, mark the check as passed.
357
362
return BL_FSM_CHECK_PASS_EVT ;
358
363
}
359
-
364
+ #ifdef DEBUG_LOG
365
+ printf ("Primary image auth failed\r\n" );
366
+ #endif
360
367
// If authentication failed, mark the check as failed.
361
368
ctx -> recover_main_img = true;
362
369
return BL_FSM_CHECK_FAIL_EVT ;
You can’t perform that action at this time.
0 commit comments