From c61cecdbc7fb7e5da5631043b52f4092abfbf518 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 28 Apr 2020 16:33:30 +1000 Subject: [PATCH] HAL_ChibiOS: report thread name in watchdog --- libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp b/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp index 9c8139d71e..647420fcba 100644 --- a/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp +++ b/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp @@ -224,7 +224,7 @@ static void main_loop() if (hal.util->was_watchdog_reset()) { AP::internalerror().error(AP_InternalError::error_t::watchdog_reset); const AP_HAL::Util::PersistentData &pd = hal.util->last_persistent_data; - AP::logger().WriteCritical("WDOG", "TimeUS,Tsk,IE,IEC,MvMsg,MvCmd,SmLn,FL,FT,FA,FP,ICSR,LR", "QbIIHHHHHIBII", + AP::logger().WriteCritical("WDOG", "TimeUS,Tsk,IE,IEC,MvMsg,MvCmd,SmLn,FL,FT,FA,FP,ICSR,LR,TN", "QbIIHHHHHIBIIn", AP_HAL::micros64(), pd.scheduler_task, pd.internal_errors, @@ -237,7 +237,8 @@ static void main_loop() pd.fault_addr, pd.fault_thd_prio, pd.fault_icsr, - pd.fault_lr); + pd.fault_lr, + pd.thread_name4); } #endif // HAL_NO_LOGGING #endif // IOMCU_FW