]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
RSN: Use COMPACT_MACSTR to match MAC2STR
authorJohannes Berg <johannes.berg@intel.com>
Wed, 22 Aug 2018 16:49:03 +0000 (19:49 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 16 Oct 2018 09:33:22 +0000 (12:33 +0300)
We shouldn't open-code the %02x... when we have COMPACT_MACSTR.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
src/rsn_supp/wpa.c

index 8e95cbdc09acaee3280146b0b8b9d1033616b331..e0c913074c631a49c85b852cb9ea83105b0363af 100644 (file)
@@ -1007,7 +1007,7 @@ static int wpa_supplicant_install_igtk(struct wpa_sm *sm,
        }
 
        wpa_dbg(sm->ctx->msg_ctx, MSG_DEBUG,
-               "WPA: IGTK keyid %d pn %02x%02x%02x%02x%02x%02x",
+               "WPA: IGTK keyid %d pn " COMPACT_MACSTR,
                keyidx, MAC2STR(igtk->pn));
        wpa_hexdump_key(MSG_DEBUG, "WPA: IGTK", igtk->igtk, len);
        if (keyidx > 4095) {