From 7ba957b946e73adee4ef6337e35b4ea7b9a336f2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 17 Nov 2016 17:06:22 +1100 Subject: [PATCH] HAL_SITL: flush stdout on panic --- libraries/AP_HAL_SITL/system.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_HAL_SITL/system.cpp b/libraries/AP_HAL_SITL/system.cpp index 6ae2036205..86ee6b60cf 100644 --- a/libraries/AP_HAL_SITL/system.cpp +++ b/libraries/AP_HAL_SITL/system.cpp @@ -25,6 +25,7 @@ void panic(const char *errormsg, ...) { va_list ap; + fflush(stdout); va_start(ap, errormsg); vprintf(errormsg, ap); va_end(ap);