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:
parent
07c370817c
commit
27c2940df2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue