netdev/ioctl: Setting log level to warning on SIOCGIFHWADDR failure

When our apps call getifaddrs on lo frequently, the loopback device will failed in SIOCGIFHWADDR and print too many error logs.

Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
wangchen 2024-03-28 11:57:06 +08:00 committed by Xiang Xiao
parent 07c370817c
commit 27c2940df2
1 changed files with 1 additions and 1 deletions

View File

@ -1031,7 +1031,7 @@ static int netdev_ifr_ioctl(FAR struct socket *psock, int cmd,
else
#endif
{
nerr("Unsupported link layer\n");
nwarn("WARNING: Unsupported link layer\n");
ret = -EAFNOSUPPORT;
}
break;