From: Jouni Malinen Date: Sat, 3 Apr 2010 16:36:49 +0000 (+0200) Subject: Add address to hostapd_logger output in wpa_supplicant as AP case X-Git-Tag: hostap_0_7_2~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ade07077ece86513da28b88011e3a4e203c2456b;p=thirdparty%2Fhostap.git Add address to hostapd_logger output in wpa_supplicant as AP case --- diff --git a/src/utils/wpa_debug.c b/src/utils/wpa_debug.c index 3c9d9a17a..6f6fc69cc 100644 --- a/src/utils/wpa_debug.c +++ b/src/utils/wpa_debug.c @@ -390,6 +390,9 @@ void hostapd_logger(void *ctx, const u8 *addr, unsigned int module, int level, va_end(ap); if (hostapd_logger_cb) hostapd_logger_cb(ctx, addr, module, level, buf, len); + else if (addr) + wpa_printf(MSG_DEBUG, "hostapd_logger: STA " MACSTR " - %s", + MAC2STR(addr), buf); else wpa_printf(MSG_DEBUG, "hostapd_logger: %s", buf); os_free(buf);