diff --git a/tools/hwsim.c b/tools/hwsim.c index 5321b200..da54a6a0 100644 --- a/tools/hwsim.c +++ b/tools/hwsim.c @@ -1436,7 +1436,8 @@ static void unicast_handler(struct l_genl_msg *msg, void *user_data) break; default: - l_warn("Unhandled attribute type: %u", type); + if (type >= __HWSIM_ATTR_MAX) + l_warn("Unknown attribute type: %u", type); break; } }