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

a6b4ce
--- wpa_supplicant-0.6.3/src/utils/wpa_debug.c.flush-debug	2007-07-30 23:15:34.000000000 -0400
a6b4ce
+++ wpa_supplicant-0.6.3/src/utils/wpa_debug.c	2007-07-30 23:17:06.000000000 -0400
a6b4ce
@@ -157,6 +157,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);
a6b4ce
@@ -185,6 +186,7 @@ void wpa_printf(int level, char *fmt, ..
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);
a6b4ce
@@ -217,6 +219,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);
a6b4ce
@@ -262,12 +265,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",
a6b4ce
@@ -292,6 +297,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) {