3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 05:39:24 +01:00

iwmon: Fix PMKID display

Use unsigned to prevent the PMKID bytes being sign-extended.
This commit is contained in:
Andrew Zaborowski 2016-09-06 23:43:29 +02:00 committed by Denis Kenzior
parent 755605fddf
commit a1f1046dcb

View File

@ -788,9 +788,9 @@ static void print_ie_rsn(unsigned int level, const char *label,
goto end; goto end;
for (i = 0; i < count; i += 16) { for (i = 0; i < count; i += 16) {
const char *bytes = data; const uint8_t *bytes = data;
print_attr(level + 1, "PKMKID: %02x:%02x:%02x:%02x:" print_attr(level + 1, "PMKID: %02x:%02x:%02x:%02x:"
"%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x:" "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x:"
"%02x:%02x:%02x:%02x", "%02x:%02x:%02x:%02x",
bytes[i], bytes[i + 1], bytes[i], bytes[i + 1],