Blame SOURCES/wpa_supplicant-flush-debug-output.patch

6c9f0c
--- a/src/utils/wpa_debug.c
6c9f0c
+++ b/src/utils/wpa_debug.c
6c9f0c
@@ -75,6 +75,7 @@ void wpa_debug_print_timestamp(void)
a6b4ce
 	if (out_file) {
a6b4ce
 		fprintf(out_file, "%ld.%06u: ", (long) tv.sec,
a6b4ce
 			(unsigned int) tv.usec);
a6b4ce
+		fflush(out_file);
a6b4ce
 	} else
a6b4ce
 #endif /* CONFIG_DEBUG_FILE */
a6b4ce
 	printf("%ld.%06u: ", (long) tv.sec, (unsigned int) tv.usec);
6c9f0c
@@ -221,6 +222,7 @@ void wpa_printf(int level, const char *f
a6b4ce
 		if (out_file) {
a6b4ce
 			vfprintf(out_file, fmt, ap);
a6b4ce
 			fprintf(out_file, "\n");
a6b4ce
+			fflush(out_file);
a6b4ce
 		} else {
a6b4ce
 #endif /* CONFIG_DEBUG_FILE */
a6b4ce
 		vprintf(fmt, ap);
6c9f0c
@@ -357,6 +359,7 @@ static void _wpa_hexdump(int level, cons
a6b4ce
 			fprintf(out_file, " [REMOVED]");
a6b4ce
 		}
a6b4ce
 		fprintf(out_file, "\n");
a6b4ce
+		fflush(out_file);
a6b4ce
 	} else {
a6b4ce
 #endif /* CONFIG_DEBUG_FILE */
a6b4ce
 	printf("%s - hexdump(len=%lu):", title, (unsigned long) len);
6c9f0c
@@ -425,12 +428,14 @@ static void _wpa_hexdump_ascii(int level
a6b4ce
 			fprintf(out_file,
a6b4ce
 				"%s - hexdump_ascii(len=%lu): [REMOVED]\n",
a6b4ce
 				title, (unsigned long) len);
a6b4ce
+			fflush(out_file);
a6b4ce
 			return;
a6b4ce
 		}
a6b4ce
 		if (buf == NULL) {
a6b4ce
 			fprintf(out_file,
a6b4ce
 				"%s - hexdump_ascii(len=%lu): [NULL]\n",
a6b4ce
 				title, (unsigned long) len);
a6b4ce
+			fflush(out_file);
a6b4ce
 			return;
a6b4ce
 		}
a6b4ce
 		fprintf(out_file, "%s - hexdump_ascii(len=%lu):\n",
6c9f0c
@@ -455,6 +460,7 @@ static void _wpa_hexdump_ascii(int level
a6b4ce
 			pos += llen;
a6b4ce
 			len -= llen;
a6b4ce
 		}
a6b4ce
+		fflush(out_file);
a6b4ce
 	} else {
a6b4ce
 #endif /* CONFIG_DEBUG_FILE */
a6b4ce
 	if (!show) {