[PATCH] suggestion : flush outputs in wpa_printf

Annie Rota annie.rota
Tue Feb 3 08:23:48 PST 2009


Hi all,
In order to improve interprocess readability between wpa_supplicant and
clients of the control interface,
I propose to fflush the outputs of wpa_printf more often (especially
stdout).

Regards,

*** wpa_debug.c.old    2009-01-06 19:11:16.000000000 +0100
--- wpa_debug.c    2009-02-03 16:51:52.000000000 +0100
*************** void wpa_printf(int level, char *fmt, ..
*** 67,76 ****
--- 67,78 ----
          if (out_file) {
              vfprintf(out_file, fmt, ap);
              fprintf(out_file, "\n");
+             fflush(out_file),
          } else {
  #endif /* CONFIG_DEBUG_FILE */
          vprintf(fmt, ap);
          printf("\n");
+         fflush(stdout);
  #ifdef CONFIG_DEBUG_FILE
          }
  #endif /* CONFIG_DEBUG_FILE */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20090203/d4e8d7fe/attachment-0001.htm 



More information about the Hostap mailing list