From f4637fe0fd7f4b4b0cd0f1a4e48ccc94e944e160 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 26 Dec 2014 17:09:00 +0200 Subject: [PATCH] wpa_supplicant: Set stdout line-buffered This makes wpa_supplicant debug output in stdout line-buffered to remain consistent with hostapd. Signed-off-by: Jouni Malinen --- wpa_supplicant/wpa_supplicant.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index cb99067ce..329d0d06a 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -4248,7 +4248,10 @@ struct wpa_global * wpa_supplicant_init(struct wpa_params *params) wpa_msg_register_ifname_cb(wpa_supplicant_msg_ifname_cb); #endif /* CONFIG_NO_WPA_MSG */ - wpa_debug_open_file(params->wpa_debug_file_path); + if (params->wpa_debug_file_path) + wpa_debug_open_file(params->wpa_debug_file_path); + else + wpa_debug_setup_stdout(); if (params->wpa_debug_syslog) wpa_debug_open_syslog(); if (params->wpa_debug_tracing) {