From 98e58ea55be8afc03cbc7f13b6bb3c77d005640a Mon Sep 17 00:00:00 2001 From: dwoskdo1 Date: Tue, 6 Sep 2016 18:10:58 -0400 Subject: [PATCH] add fflush(stdout) in log() to show mon output immediately --- src/mon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mon.c b/src/mon.c index 5703e7c..c23a074 100644 --- a/src/mon.c +++ b/src/mon.c @@ -66,8 +66,10 @@ static monitor_t monitor; do { \ if (prefix) { \ printf("mon : %s : " fmt "\n", prefix, ##args); \ + fflush(stdout); \ } else { \ printf("mon : " fmt "\n", ##args); \ + fflush(stdout); \ } \ } while(0)