AP_InternalError: remove superfluous linefeed from panic strings

panic adds this within the HAL layer.
This commit is contained in:
Peter Barker 2024-12-13 20:15:44 +11:00 committed by Peter Barker
parent 5becd59265
commit 7fe183ba0f
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}