From 7fe183ba0ff5f0411ee3788b0ca696c132ee9066 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 13 Dec 2024 20:15:44 +1100 Subject: [PATCH] AP_InternalError: remove superfluous linefeed from panic strings panic adds this within the HAL layer. --- libraries/AP_InternalError/AP_InternalError.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_InternalError/AP_InternalError.cpp b/libraries/AP_InternalError/AP_InternalError.cpp index 0f23b2d1d4..c1319b1126 100644 --- a/libraries/AP_InternalError/AP_InternalError.cpp +++ b/libraries/AP_InternalError/AP_InternalError.cpp @@ -127,7 +127,7 @@ void AP_stack_overflow(const char *thread_name) } hal.util->persistent_data.fault_type = 42; // magic value if (!hal.util->get_soft_armed()) { - AP_HAL::panic("stack overflow %s\n", thread_name); + AP_HAL::panic("stack overflow %s", thread_name); } } @@ -137,7 +137,7 @@ void AP_memory_guard_error(uint32_t size) INTERNAL_ERROR(AP_InternalError::error_t::mem_guard); if (!hal.util->get_soft_armed()) { ::printf("memory guard error size=%u\n", unsigned(size)); - AP_HAL::panic("memory guard size=%u\n", unsigned(size)); + AP_HAL::panic("memory guard size=%u", unsigned(size)); } }