hostapd: Use wpa_printf() for hostapd_logger() to stdout
authorJouni Malinen <j@w1.fi>
Sat, 2 Nov 2013 09:32:19 +0000 (11:32 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 2 Nov 2013 09:32:19 +0000 (11:32 +0200)
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>

hostapd/main.c

index d6f9258..c9ea970 100644 (file)
@@ -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