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
1 changed files with 2 additions and 1 deletions

View File

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