diff --git a/lib/utils.h b/lib/utils.h index 5d4c537ea24144babecac1869928e3a44331d3bd..dfcc55f6f2b1c64e959ae8c53acacdc010985d99 100644 --- a/lib/utils.h +++ b/lib/utils.h @@ -28,7 +28,7 @@ /* * Logging and debugging. */ -#define kr_log_info(fmt, ...) printf((fmt), ## __VA_ARGS__) +#define kr_log_info(fmt, ...) do { printf((fmt), ## __VA_ARGS__); fflush(stdout); } while(0) #define kr_log_error(fmt, ...) fprintf(stderr, (fmt), ## __VA_ARGS__) #ifndef NDEBUG /* Toggle debug messages */