mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
d6e1c20a9c
commit
de5cc186e4
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue