hwsim: limit "Unknown attribute type:" print
Since we don't catch all hwsim attribute types in unicast_handler you see tons of "Unknown attribute type: X" prints. Since this is not an error, we should only print if the attribute does not exist in the attribute list.
This commit is contained in:
parent
ceca5c42ba
commit
a2df686d97
|
@ -1436,7 +1436,8 @@ static void unicast_handler(struct l_genl_msg *msg, void *user_data)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
l_warn("Unhandled attribute type: %u", type);
|
if (type >= __HWSIM_ATTR_MAX)
|
||||||
|
l_warn("Unknown attribute type: %u", type);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue