2010-02-11 18:44:15 +00:00
|
|
|
Index: src/utils/wpa_debug.c
|
|
|
|
===================================================================
|
2019-07-29 13:10:56 +00:00
|
|
|
--- a/src/utils/wpa_debug.c
|
|
|
|
+++ b/src/utils/wpa_debug.c
|
2010-02-11 18:44:15 +00:00
|
|
|
@@ -45,6 +45,7 @@ void wpa_debug_print_timestamp(void)
|
2007-11-14 13:55:48 +00:00
|
|
|
if (out_file) {
|
|
|
|
fprintf(out_file, "%ld.%06u: ", (long) tv.sec,
|
|
|
|
(unsigned int) tv.usec);
|
|
|
|
+ fflush(out_file);
|
|
|
|
} else
|
|
|
|
#endif /* CONFIG_DEBUG_FILE */
|
|
|
|
printf("%ld.%06u: ", (long) tv.sec, (unsigned int) tv.usec);
|
2010-02-11 18:44:15 +00:00
|
|
|
@@ -111,6 +112,7 @@ void wpa_printf(int level, const char *f
|
2007-11-14 13:55:48 +00:00
|
|
|
if (out_file) {
|
|
|
|
vfprintf(out_file, fmt, ap);
|
|
|
|
fprintf(out_file, "\n");
|
|
|
|
+ fflush(out_file);
|
|
|
|
} else {
|
|
|
|
#endif /* CONFIG_DEBUG_FILE */
|
|
|
|
vprintf(fmt, ap);
|
2010-02-11 18:44:15 +00:00
|
|
|
@@ -146,6 +148,7 @@ static void _wpa_hexdump(int level, cons
|
2007-11-14 13:55:48 +00:00
|
|
|
fprintf(out_file, " [REMOVED]");
|
|
|
|
}
|
|
|
|
fprintf(out_file, "\n");
|
|
|
|
+ fflush(out_file);
|
|
|
|
} else {
|
|
|
|
#endif /* CONFIG_DEBUG_FILE */
|
|
|
|
printf("%s - hexdump(len=%lu):", title, (unsigned long) len);
|
2010-02-11 18:44:15 +00:00
|
|
|
@@ -191,12 +194,14 @@ static void _wpa_hexdump_ascii(int level
|
2007-11-14 13:55:48 +00:00
|
|
|
fprintf(out_file,
|
|
|
|
"%s - hexdump_ascii(len=%lu): [REMOVED]\n",
|
|
|
|
title, (unsigned long) len);
|
|
|
|
+ fflush(out_file);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (buf == NULL) {
|
|
|
|
fprintf(out_file,
|
|
|
|
"%s - hexdump_ascii(len=%lu): [NULL]\n",
|
|
|
|
title, (unsigned long) len);
|
|
|
|
+ fflush(out_file);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
fprintf(out_file, "%s - hexdump_ascii(len=%lu):\n",
|
2010-02-11 18:44:15 +00:00
|
|
|
@@ -221,6 +226,7 @@ static void _wpa_hexdump_ascii(int level
|
2007-11-14 13:55:48 +00:00
|
|
|
pos += llen;
|
|
|
|
len -= llen;
|
|
|
|
}
|
|
|
|
+ fflush(out_file);
|
|
|
|
} else {
|
|
|
|
#endif /* CONFIG_DEBUG_FILE */
|
|
|
|
if (!show) {
|