This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new de5cc186e45 net/netdev/netdev_txnotify.c: add debug log with interface 
name
de5cc186e45 is described below

commit de5cc186e4585fdbb9e3466bdf30d8592684825e
Author: shichunma <[email protected]>
AuthorDate: Tue May 5 16:56:19 2026 +0800

    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 <[email protected]>
---
 net/netdev/netdev_txnotify.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/netdev/netdev_txnotify.c b/net/netdev/netdev_txnotify.c
index 5a83fd72042..7bbcddcec0f 100644
--- a/net/netdev/netdev_txnotify.c
+++ b/net/netdev/netdev_txnotify.c
@@ -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;

Reply via email to