Skip to content

Commit

Permalink
Flush stdout after each log line (project-chip#34449)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksperling-apple authored Jul 23, 2024
1 parent c0d76b3 commit b68df5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/logging/impl/stdio/Logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ void LogV(const char * module, uint8_t category, const char * msg, va_list v)
printf("[%s] ", module);
vprintf(msg, v);
printf("\033[0m\n");
fflush(stdout);

#if defined(_POSIX_THREAD_SAFE_FUNCTIONS)
funlockfile(stdout);
Expand Down

0 comments on commit b68df5a

Please sign in to comment.