Skip to content

Commit 3bafd3a

Browse files
authored
Flush cerr on fail
1 parent bcffc3f commit 3bafd3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rtcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ void log_function_if_realtime_context (const char* function_name)
223223
if (name.starts_with (wrap_prefix))
224224
name = name.substr (wrap_prefix.length());
225225

226-
std::cerr << "Real-time violation: intercepted call to real-time unsafe function " << name << " in real-time context! Stack trace:\n" << get_stacktrace();
226+
std::cerr << "Real-time violation: intercepted call to real-time unsafe function " << name << " in real-time context! Stack trace:\n" << get_stacktrace() << std::endl;
227227

228228
if (get_error_mode() == error_mode::exit)
229229
std::exit (1);

0 commit comments

Comments
 (0)