From b253e6ff55cd11f1239d82e1e3e61d3190e824b2 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 2 Nov 2013 11:32:19 +0200 Subject: [PATCH] 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 --- hostapd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hostapd/main.c b/hostapd/main.c index d6f9258bc..c9ea970c5 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