Hi all,<br>In order to improve interprocess readability between wpa_supplicant and clients of the control interface, <br>I propose to fflush the outputs of wpa_printf more often (especially stdout).<br><br>Regards,<br><br>
*** wpa_debug.c.old&nbsp;&nbsp;&nbsp; 2009-01-06 19:11:16.000000000 +0100<br>--- wpa_debug.c&nbsp;&nbsp;&nbsp; 2009-02-03 16:51:52.000000000 +0100<br>*************** void wpa_printf(int level, char *fmt, ..<br>*** 67,76 ****<br>--- 67,78 ----<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (out_file) {<br>
&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vfprintf(out_file, fmt, ap);<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fprintf(out_file, &quot;\n&quot;);<br>+ &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fflush(out_file),<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {<br>&nbsp; #endif /* CONFIG_DEBUG_FILE */<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vprintf(fmt, ap);<br>
&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;\n&quot;);<br>+ &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fflush(stdout);<br>&nbsp; #ifdef CONFIG_DEBUG_FILE<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp; #endif /* CONFIG_DEBUG_FILE */<br><br>