mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
monitor: Fix some whitespace corruption
This commit is contained in:
parent
626332a726
commit
44aaaa74ee
@ -2201,9 +2201,9 @@ static void print_ifi_addr(unsigned int indent, const char *str,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct attr_entry info_entry[] = {
|
static struct attr_entry info_entry[] = {
|
||||||
{ IFLA_ADDRESS, "Interface Address", ATTR_CUSTOM,
|
{ IFLA_ADDRESS, "Interface Address", ATTR_CUSTOM,
|
||||||
{ .function = print_ifi_addr } },
|
{ .function = print_ifi_addr } },
|
||||||
{ IFLA_BROADCAST, "Broadcast Address", ATTR_CUSTOM,
|
{ IFLA_BROADCAST, "Broadcast Address", ATTR_CUSTOM,
|
||||||
{ .function = print_ifi_addr } },
|
{ .function = print_ifi_addr } },
|
||||||
{ IFLA_IFNAME, "IfName", ATTR_STRING },
|
{ IFLA_IFNAME, "IfName", ATTR_STRING },
|
||||||
{ IFLA_MASTER, "Master", ATTR_U32 },
|
{ IFLA_MASTER, "Master", ATTR_U32 },
|
||||||
@ -2298,21 +2298,21 @@ static void print_rtnl_attributes(int indent, const struct attr_entry *table,
|
|||||||
case ATTR_U8:
|
case ATTR_U8:
|
||||||
val8 = *((uint8_t *) RTA_DATA(attr));
|
val8 = *((uint8_t *) RTA_DATA(attr));
|
||||||
print_attr(indent, "%s: %"PRIu8" (0x%02"PRIx8")", str,
|
print_attr(indent, "%s: %"PRIu8" (0x%02"PRIx8")", str,
|
||||||
val8, val8);
|
val8, val8);
|
||||||
if (RTA_PAYLOAD(attr) != 1)
|
if (RTA_PAYLOAD(attr) != 1)
|
||||||
printf("malformed packet\n");
|
printf("malformed packet\n");
|
||||||
break;
|
break;
|
||||||
case ATTR_U16:
|
case ATTR_U16:
|
||||||
val16 = *((uint16_t *) RTA_DATA(attr));
|
val16 = *((uint16_t *) RTA_DATA(attr));
|
||||||
print_attr(indent, "%s: %"PRIu16" (0x%04"PRIx16")", str,
|
print_attr(indent, "%s: %"PRIu16" (0x%04"PRIx16")", str,
|
||||||
val16, val16);
|
val16, val16);
|
||||||
if (RTA_PAYLOAD(attr) != 2)
|
if (RTA_PAYLOAD(attr) != 2)
|
||||||
printf("malformed packet\n");
|
printf("malformed packet\n");
|
||||||
break;
|
break;
|
||||||
case ATTR_U32:
|
case ATTR_U32:
|
||||||
val32 = *((uint32_t *) RTA_DATA(attr));
|
val32 = *((uint32_t *) RTA_DATA(attr));
|
||||||
print_attr(indent, "%s: %"PRIu32" (0x%08"PRIx32")", str,
|
print_attr(indent, "%s: %"PRIu32" (0x%08"PRIx32")", str,
|
||||||
val32, val32);
|
val32, val32);
|
||||||
if (RTA_PAYLOAD(attr) != 4)
|
if (RTA_PAYLOAD(attr) != 4)
|
||||||
printf("malformed packet\n");
|
printf("malformed packet\n");
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user