Blame SOURCES/0084-boot-analysis-Flush-out-debug-data-after-printing-it.patch

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