[PATCH] Replace printf with wpa_printf debug message

Dmitry Shmidt dimitrysh
Mon Oct 7 13:03:25 PDT 2013


Signed-off-by: Dmitry Shmidt <dimitrysh at google.com>
---
 src/ap/ieee802_1x.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c
index 01fcf2c..f1b076c 100644
--- a/src/ap/ieee802_1x.c
+++ b/src/ap/ieee802_1x.c
@@ -96,8 +96,9 @@ void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd,
 	}
 
 	if (res && errno != ENOENT) {
-		printf("Could not set station " MACSTR " flags for kernel "
-		       "driver (errno=%d).\n", MAC2STR(sta->addr), errno);
+		wpa_printf(MSG_DEBUG, "Could not set station " MACSTR " flags "
+			   "for kernel driver (errno=%d).\n",
+			   MAC2STR(sta->addr), errno);
 	}
 
 	if (authorized) {
-- 
1.8.4




More information about the Hostap mailing list