Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:ARM:Rings:1-MinimalX
wpa_supplicant
wpa_supplicant-flush-debug-output.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File wpa_supplicant-flush-debug-output.patch of Package wpa_supplicant
Index: wpa_supplicant-2.10/src/utils/wpa_debug.c =================================================================== --- wpa_supplicant-2.10.orig/src/utils/wpa_debug.c +++ wpa_supplicant-2.10/src/utils/wpa_debug.c @@ -76,9 +76,11 @@ void wpa_debug_print_timestamp(void) os_get_time(&tv); #ifdef CONFIG_DEBUG_FILE - if (out_file) + if (out_file) { fprintf(out_file, "%ld.%06u: ", (long) tv.sec, (unsigned int) tv.usec); + fflush(out_file); + } #endif /* CONFIG_DEBUG_FILE */ if (!out_file && !wpa_debug_syslog) printf("%ld.%06u: ", (long) tv.sec, (unsigned int) tv.usec); @@ -231,6 +233,7 @@ void wpa_printf(int level, const char *f vfprintf(out_file, fmt, ap); fprintf(out_file, "\n"); va_end(ap); + fflush(out_file); } #endif /* CONFIG_DEBUG_FILE */ if (!wpa_debug_syslog && !out_file) { @@ -365,6 +368,7 @@ static void _wpa_hexdump(int level, cons fprintf(out_file, " [REMOVED]"); } fprintf(out_file, "\n"); + fflush(out_file); } #endif /* CONFIG_DEBUG_FILE */ if (!wpa_debug_syslog && !out_file) { @@ -436,12 +440,14 @@ static void _wpa_hexdump_ascii(int level fprintf(out_file, "%s - hexdump_ascii(len=%lu): [REMOVED]\n", title, (unsigned long) len); + fflush(out_file); goto file_done; } if (buf == NULL) { fprintf(out_file, "%s - hexdump_ascii(len=%lu): [NULL]\n", title, (unsigned long) len); + fflush(out_file); goto file_done; } fprintf(out_file, "%s - hexdump_ascii(len=%lu):\n", @@ -466,6 +472,7 @@ static void _wpa_hexdump_ascii(int level pos += llen; len -= llen; } + fflush(out_file); } file_done: #endif /* CONFIG_DEBUG_FILE */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor