diff --git a/libraries/AP_HAL_SITL/Scheduler.cpp b/libraries/AP_HAL_SITL/Scheduler.cpp index ccc40042e8..329617d877 100644 --- a/libraries/AP_HAL_SITL/Scheduler.cpp +++ b/libraries/AP_HAL_SITL/Scheduler.cpp @@ -414,7 +414,7 @@ void Scheduler::check_thread_stacks(void) const uint8_t ncheck = 8; for (uint8_t i=0; istack_min[i] != stackfill) { - AP_HAL::panic("stack overflow in thread %s\n", p->name); + AP_HAL::panic("stack overflow in thread %s", p->name); } } } diff --git a/libraries/AP_HAL_SITL/Storage.cpp b/libraries/AP_HAL_SITL/Storage.cpp index 98e28e5f99..c82f8351f2 100644 --- a/libraries/AP_HAL_SITL/Storage.cpp +++ b/libraries/AP_HAL_SITL/Storage.cpp @@ -279,7 +279,7 @@ static bool sitl_flash_write(uint32_t addr, const uint8_t *data, uint32_t length } #if defined(HAL_FLASH_MIN_WRITE_SIZE) && HAL_FLASH_MIN_WRITE_SIZE == 32 if ((length % HAL_FLASH_MIN_WRITE_SIZE) != 0 || (addr % HAL_FLASH_MIN_WRITE_SIZE) != 0) { - AP_HAL::panic("Attempt to write flash at %u length %u\n", addr, length); + AP_HAL::panic("Attempt to write flash at %u length %u", addr, length); } // emulate H7 requirement that writes be to untouched bytes for (uint32_t i=0; i