mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
monitor: print out type of unknown element
This changes the string from "Reserved" to "Unknown" which feels more fitting, and also prints out the NL type of the unknown element.
This commit is contained in:
parent
0fdc5e87d1
commit
3940453ad2
@ -6741,7 +6741,7 @@ static void print_attributes(int indent, const struct attr_entry *table,
|
|||||||
int64_t val_s64;
|
int64_t val_s64;
|
||||||
uint8_t *ptr;
|
uint8_t *ptr;
|
||||||
|
|
||||||
str = "Reserved";
|
str = "Unknown";
|
||||||
type = ATTR_UNSPEC;
|
type = ATTR_UNSPEC;
|
||||||
array_type = ATTR_UNSPEC;
|
array_type = ATTR_UNSPEC;
|
||||||
nested = NULL;
|
nested = NULL;
|
||||||
@ -6761,7 +6761,7 @@ static void print_attributes(int indent, const struct attr_entry *table,
|
|||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case ATTR_UNSPEC:
|
case ATTR_UNSPEC:
|
||||||
print_attr(indent, "%s: len %u", str,
|
print_attr(indent, "%s: %u len %u", str, nla_type,
|
||||||
NLA_PAYLOAD(nla));
|
NLA_PAYLOAD(nla));
|
||||||
print_hexdump(indent + 1,
|
print_hexdump(indent + 1,
|
||||||
NLA_DATA(nla), NLA_PAYLOAD(nla));
|
NLA_DATA(nla), NLA_PAYLOAD(nla));
|
||||||
|
Loading…
Reference in New Issue
Block a user