From e8c04a323238bf2838520ae44a1d930b5d777bc7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 10 May 2016 12:17:28 +0100 Subject: [PATCH] boot-analysis: Flush out debug data after printing it. Just makes it easier to see bugs causing the analysis stage to hang / infinite loop. (cherry picked from commit 754b8f5ef391ec4ee1b39db66b4923f9a8aa5cd9) --- utils/boot-analysis/boot-analysis.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/boot-analysis/boot-analysis.c b/utils/boot-analysis/boot-analysis.c index 461c69e..3d38fe2 100644 --- a/utils/boot-analysis/boot-analysis.c +++ b/utils/boot-analysis/boot-analysis.c @@ -841,6 +841,8 @@ dump_pass_data (void) printf ("\"\n"); } } + + fflush (stdout); } /* Convert source to a printable string. The caller must free the @@ -1018,6 +1020,8 @@ dump_timeline (void) printf (" s.d = %.1f\n", activities[i].sd); printf (" percent = %.1f\n", activities[i].percent); } + + fflush (stdout); } static void -- 2.7.4