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
1 changed files with 2 additions and 2 deletions

View File

@ -788,9 +788,9 @@ static void print_ie_rsn(unsigned int level, const char *label,
goto end;
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",
bytes[i], bytes[i + 1],