diff --git a/lib_standard_app/debug.c b/lib_standard_app/debug.c index ea1a396cb..3d0e99c8b 100644 --- a/lib_standard_app/debug.c +++ b/lib_standard_app/debug.c @@ -25,11 +25,12 @@ #endif #ifdef HAVE_DEBUG_THROWS -static char errordata[20]; +static char errordata[30]; +// This function can be used to declare a callback to THROW in the application WEAK void app_throw_info(unsigned int exception, unsigned int lr_val) { - snprintf(errordata, sizeof(errordata), "n%d, LR=0x%08X", exception, lr_val); + snprintf(errordata, sizeof(errordata), "0x%04X LR=0x%08X", exception, lr_val); } static void review_choice(bool confirm)