250fd0
--- wpa_supplicant-0.6.3/src/utils/wpa_debug.c.flush-debug	2007-07-30 23:15:34.000000000 -0400
250fd0
+++ wpa_supplicant-0.6.3/src/utils/wpa_debug.c	2007-07-30 23:17:06.000000000 -0400
250fd0
@@ -157,6 +157,7 @@ void wpa_debug_print_timestamp(void)
250fd0
 	if (out_file) {
250fd0
 		fprintf(out_file, "%ld.%06u: ", (long) tv.sec,
250fd0
 			(unsigned int) tv.usec);
250fd0
+		fflush(out_file);
250fd0
 	} else
250fd0
 #endif /* CONFIG_DEBUG_FILE */
250fd0
 	printf("%ld.%06u: ", (long) tv.sec, (unsigned int) tv.usec);
250fd0
@@ -185,6 +186,7 @@ void wpa_printf(int level, char *fmt, ..
250fd0
 		if (out_file) {
250fd0
 			vfprintf(out_file, fmt, ap);
250fd0
 			fprintf(out_file, "\n");
250fd0
+			fflush(out_file);
250fd0
 		} else {
250fd0
 #endif /* CONFIG_DEBUG_FILE */
250fd0
 		vprintf(fmt, ap);
250fd0
@@ -217,6 +219,7 @@ static void _wpa_hexdump(int level, cons
250fd0
 			fprintf(out_file, " [REMOVED]");
250fd0
 		}
250fd0
 		fprintf(out_file, "\n");
250fd0
+		fflush(out_file);
250fd0
 	} else {
250fd0
 #endif /* CONFIG_DEBUG_FILE */
250fd0
 	printf("%s - hexdump(len=%lu):", title, (unsigned long) len);
250fd0
@@ -262,12 +265,14 @@ static void _wpa_hexdump_ascii(int level
250fd0
 			fprintf(out_file,
250fd0
 				"%s - hexdump_ascii(len=%lu): [REMOVED]\n",
250fd0
 				title, (unsigned long) len);
250fd0
+			fflush(out_file);
250fd0
 			return;
250fd0
 		}
250fd0
 		if (buf == NULL) {
250fd0
 			fprintf(out_file,
250fd0
 				"%s - hexdump_ascii(len=%lu): [NULL]\n",
250fd0
 				title, (unsigned long) len);
250fd0
+			fflush(out_file);
250fd0
 			return;
250fd0
 		}
250fd0
 		fprintf(out_file, "%s - hexdump_ascii(len=%lu):\n",
250fd0
@@ -292,6 +297,7 @@ static void _wpa_hexdump_ascii(int level
250fd0
 			pos += llen;
250fd0
 			len -= llen;
250fd0
 		}
250fd0
+		fflush(out_file);
250fd0
 	} else {
250fd0
 #endif /* CONFIG_DEBUG_FILE */
250fd0
 	if (!show) {