mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-19 21:28:50 +00:00
u/logging: Include newline char in Windows debug output
This commit is contained in:
parent
acde32ab2a
commit
28ba6ed448
|
@ -345,14 +345,15 @@ do_print(const char *file, int line, const char *func, enum u_logging_level leve
|
|||
|
||||
#elif defined XRT_OS_WINDOWS || defined XRT_OS_LINUX
|
||||
|
||||
#if defined XRT_OS_WINDOWS
|
||||
OutputDebugStringA(storage); // No newline.
|
||||
#endif
|
||||
|
||||
// We want a newline, so add it, then null-terminate again.
|
||||
storage[printed++] = '\n';
|
||||
storage[printed] = '\0'; // Don't count zero termination as printed.
|
||||
|
||||
#if defined XRT_OS_WINDOWS
|
||||
// Visual Studio output needs the newline char
|
||||
OutputDebugStringA(storage);
|
||||
#endif
|
||||
|
||||
fwrite(storage, printed, 1, stderr);
|
||||
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue