Fix error messages to print ASCII MAC address, not the parse buffer
authorJouni Malinen <j@w1.fi>
Sat, 10 Apr 2010 19:46:54 +0000 (22:46 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 10 Apr 2010 19:46:54 +0000 (22:46 +0300)
wpa_supplicant/ctrl_iface.c

index 969cc8a..19a4d8d 100644 (file)
@@ -119,7 +119,7 @@ static int wpa_supplicant_ctrl_iface_stkstart(
 
        if (hwaddr_aton(addr, peer)) {
                wpa_printf(MSG_DEBUG, "CTRL_IFACE STKSTART: invalid "
-                          "address '%s'", peer);
+                          "address '%s'", addr);
                return -1;
        }
 
@@ -141,7 +141,7 @@ static int wpa_supplicant_ctrl_iface_ft_ds(
 
        if (hwaddr_aton(addr, target_ap)) {
                wpa_printf(MSG_DEBUG, "CTRL_IFACE FT_DS: invalid "
-                          "address '%s'", target_ap);
+                          "address '%s'", addr);
                return -1;
        }
 
@@ -343,7 +343,7 @@ static int wpa_supplicant_ctrl_iface_ibss_rsn(
 
        if (hwaddr_aton(addr, peer)) {
                wpa_printf(MSG_DEBUG, "CTRL_IFACE IBSS_RSN: invalid "
-                          "address '%s'", peer);
+                          "address '%s'", addr);
                return -1;
        }