improving stdout for logging by disabling buffering

This commit is contained in:
PhrAx 2021-05-29 23:46:08 -07:00
parent dbf78b772b
commit e42adab4f9

View File

@ -1121,6 +1121,8 @@ int main(int argc, char* argv[])
DWORD now; DWORD now;
BUS::phase_t phase; BUS::phase_t phase;
BYTE data; BYTE data;
// added setvbuf to overtime stdout buffering, so logs are written immediately and not when the process exits.
setvbuf(stdout, NULL, _IONBF, 0);
#ifndef BAREMETAL #ifndef BAREMETAL
struct sched_param schparam; struct sched_param schparam;
#endif // BAREMETAL #endif // BAREMETAL