Skip to content

Commit

Permalink
netdev/ioctl: Setting log level to warning on SIOCGIFHWADDR failure
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wangchen61698 committed Aug 20, 2024
1 parent 8d29af8 commit b8031bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netdev/netdev_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b8031bb

Please sign in to comment.