From b8031bb685a1a8423fd75ca2b11f2160ca9051f4 Mon Sep 17 00:00:00 2001 From: wangchen Date: Thu, 28 Mar 2024 11:57:06 +0800 Subject: [PATCH] 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 --- net/netdev/netdev_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netdev/netdev_ioctl.c b/net/netdev/netdev_ioctl.c index 56129d6ae6bc9..e9e64db692d9c 100644 --- a/net/netdev/netdev_ioctl.c +++ b/net/netdev/netdev_ioctl.c @@ -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;