mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user