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