The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

u/logging: Flush logging output on Windows

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2619>

authored by

Jakob Bornecrantz and committed by
Marge Bot
b1415957 3292394c

+8
+8
src/xrt/auxiliary/util/u_logging.c
··· 443 443 FILE *output = g_log_file != NULL ? g_log_file : stderr; 444 444 fwrite(storage, printed, 1, output); 445 445 446 + #if defined(XRT_OS_WINDOWS) 447 + /* 448 + * Windows like to buffer messages, call flush here to make sure all 449 + * logs gets written out in case of sudden exits and crashes. 450 + */ 451 + fflush(output); 452 + #endif 453 + 446 454 #else 447 455 #error "Port needed for logging function" 448 456 #endif