3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

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:
James Prestwood 2018-10-24 13:27:45 -07:00 committed by Denis Kenzior
parent ceca5c42ba
commit a2df686d97

View File

@ -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;
} }
} }