aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/main.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-11-02 09:32:19 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-02 09:32:19 (GMT)
commitb253e6ff55cd11f1239d82e1e3e61d3190e824b2 (patch)
tree12b8a9805e3bad98f4b632a5c38a0b153c0dfd1e /hostapd/main.c
parentd956022c11a7704cf749f7ab01879aade656d574 (diff)
downloadhostap-b253e6ff55cd11f1239d82e1e3e61d3190e824b2.zip
hostap-b253e6ff55cd11f1239d82e1e3e61d3190e824b2.tar.gz
hostap-b253e6ff55cd11f1239d82e1e3e61d3190e824b2.tar.bz2
hostapd: Use wpa_printf() for hostapd_logger() to stdout
This allows log-to-file (-f command line option) to be used to redirect these messages to the same file with all the other stdout debug. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/main.c')
-rw-r--r--hostapd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index d6f9258..c9ea970 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -114,7 +114,7 @@ static void hostapd_logger_cb(void *ctx, const u8 *addr, unsigned int module,
if ((conf_stdout & module) && level >= conf_stdout_level) {
wpa_debug_print_timestamp();
- printf("%s\n", format);
+ wpa_printf(MSG_INFO, "%s", format);
}
#ifndef CONFIG_NATIVE_WINDOWS