hostapd: Set stdout line-buffered
If hostapd will use stdout for debugging, set stdout to be line buffered in case its output is redirected to a file. This allows incremental output to be viewed immediately instead of at the file buffering interval. Signed-hostap: Paul Stewart <pstew@chromium.org>
This commit is contained in:
parent
a642a52b17
commit
de27bc7673
3 changed files with 12 additions and 0 deletions
|
@ -638,6 +638,8 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (log_file)
|
||||
wpa_debug_open_file(log_file);
|
||||
else
|
||||
wpa_debug_setup_stdout();
|
||||
#ifdef CONFIG_DEBUG_LINUX_TRACING
|
||||
if (enable_trace_dbg) {
|
||||
int tret = wpa_debug_open_linux_tracing();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue