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

abfddd
--- a/src/utils/wpa_debug.c
abfddd
+++ b/src/utils/wpa_debug.c
abfddd
@@ -79,6 +79,7 @@ void wpa_debug_print_timestamp(void)
abfddd
 	if (out_file)
919688
 		fprintf(out_file, "%ld.%06u: ", (long) tv.sec,
919688
 			(unsigned int) tv.usec);
abfddd
+	fflush(out_file);
919688
 #endif /* CONFIG_DEBUG_FILE */
abfddd
 	if (!out_file && !wpa_debug_syslog)
abfddd
 		printf("%ld.%06u: ", (long) tv.sec, (unsigned int) tv.usec);
abfddd
@@ -230,6 +231,7 @@ void wpa_printf(int level, const char *f
abfddd
 			va_start(ap, fmt);
919688
 			vfprintf(out_file, fmt, ap);
919688
 			fprintf(out_file, "\n");
919688
+			fflush(out_file);
abfddd
 			va_end(ap);
abfddd
 		}
919688
 #endif /* CONFIG_DEBUG_FILE */
abfddd
@@ -365,6 +367,7 @@ static void _wpa_hexdump(int level, cons
919688
 			fprintf(out_file, " [REMOVED]");
919688
 		}
919688
 		fprintf(out_file, "\n");
919688
+		fflush(out_file);
abfddd
 	}
919688
 #endif /* CONFIG_DEBUG_FILE */
abfddd
 	if (!wpa_debug_syslog && !out_file) {
abfddd
@@ -468,6 +471,8 @@ static void _wpa_hexdump_ascii(int level
919688
 		}
abfddd
 	}
abfddd
 file_done:
abfddd
+	if (out_file)
919688
+		fflush(out_file);
919688
 #endif /* CONFIG_DEBUG_FILE */
abfddd
 	if (!wpa_debug_syslog && !out_file) {
abfddd
 		if (!show) {