Skip to content

Commit

Permalink
main.c: Improve exception printing format
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Dec 1, 2023
1 parent 9872458 commit 365f18a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib_standard_app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static void standalone_app_main(void)
}
CATCH_OTHER(e)
{
PRINTF("Exiting following exception: %d\n", e);
PRINTF("Exiting following exception: 0x%04X\n", e);

#ifdef HAVE_DEBUG_THROWS
// Disable USB and BLE, the app have crashed and is going to be exited
Expand Down Expand Up @@ -141,7 +141,7 @@ static void library_app_main(libargs_t *args)
}
CATCH_OTHER(e)
{
PRINTF("Exiting following exception: %d\n", e);
PRINTF("Exiting following exception: 0x%04X\n", e);
}
FINALLY
{
Expand Down

0 comments on commit 365f18a

Please sign in to comment.