From: Jouni Malinen Date: Sat, 2 Nov 2013 09:32:19 +0000 (+0200) Subject: hostapd: Use wpa_printf() for hostapd_logger() to stdout X-Git-Tag: hostap_2_1~677 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b253e6ff55cd11f1239d82e1e3e61d3190e824b2;p=thirdparty%2Fhostap.git 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 --- 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