mirror of
https://github.com/apache/nuttx.git
synced 2026-05-09 23:12:17 +08:00
net/netdev/netdev_txnotify.c: add debug log with interface name
Add ninfo() in netdev_txnotify_dev() to log the network interface name when TX notification is triggered, aiding network debugging. Signed-off-by: Jerry Ma <shichunma@bestechnic.com>
This commit is contained in:
@@ -113,6 +113,8 @@ void netdev_txnotify_dev(FAR struct net_driver_s *dev, uint32_t polltype)
|
||||
{
|
||||
if (dev != NULL && dev->d_txavail != NULL)
|
||||
{
|
||||
ninfo("txnotify dev: %s\n", dev->d_ifname);
|
||||
|
||||
/* Set the poll type flags */
|
||||
|
||||
dev->d_polltype |= polltype;
|
||||
|
||||
Reference in New Issue
Block a user