rasdaemon/output-log-timely.patch
2019-09-30 11:16:11 -04:00

28 lines
677 B
Diff

From e426fef8949c4bd7a4e3ebca84db95a0c90fc918 Mon Sep 17 00:00:00 2001
From: Ying Lv <lvying6@huawei.com>
Date: Mon, 13 May 2019 06:00:40 +0800
Subject: [PATCH] rasdaemon:output log timely
reason: output log timely
Signed-off-by: Ying Lv <lvying6@huawei.com>
---
ras-events.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ras-events.c b/ras-events.c
index 615550c..f32d512 100644
--- a/ras-events.c
+++ b/ras-events.c
@@ -301,6 +301,7 @@ static void parse_ras_data(struct pthread_data *pdata, struct kbuffer *kbuf,
trace_seq_do_printf(&s);
trace_seq_destroy(&s);
printf("\n");
+ fflush(stdout);
}
static int get_num_cpus(struct ras_events *ras)
--
1.8.3.1