]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Debug print trailing WPA/RSN IE bytes, if any
authorJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 13:35:11 +0000 (15:35 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 15:15:12 +0000 (17:15 +0200)
This silences a never-used analyzer warning in addition to making the
debug log entry somewhat more useful.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/common/wpa_common.c

index c9d0ccb7ef6312bcf0ae227509ff38fae821d90e..02ee508ae1d50ebf04b881f759e5453560805d16 100644 (file)
@@ -558,8 +558,9 @@ int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len,
 #endif /* CONFIG_IEEE80211W */
 
        if (left > 0) {
-               wpa_printf(MSG_DEBUG, "%s: ie has %u trailing bytes - ignored",
-                          __func__, left);
+               wpa_hexdump(MSG_DEBUG,
+                           "wpa_parse_wpa_ie_rsn: ignore trailing bytes",
+                           pos, left);
        }
 
        return 0;
@@ -696,8 +697,9 @@ int wpa_parse_wpa_ie_wpa(const u8 *wpa_ie, size_t wpa_ie_len,
        }
 
        if (left > 0) {
-               wpa_printf(MSG_DEBUG, "%s: ie has %u trailing bytes - ignored",
-                          __func__, left);
+               wpa_hexdump(MSG_DEBUG,
+                           "wpa_parse_wpa_ie_wpa: ignore trailing bytes",
+                           pos, left);
        }
 
        return 0;