projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d956022
)
hostapd: Use wpa_printf() for hostapd_logger() to stdout
author
Jouni Malinen
<j@w1.fi>
Sat, 2 Nov 2013 09:32:19 +0000
(11:32 +0200)
committer
Jouni 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
patch
|
blob
|
history
diff --git
a/hostapd/main.c
b/hostapd/main.c
index
d6f9258
..
c9ea970
100644
(file)
--- 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