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

xiaoxiang pushed a commit to branch releases/12.13
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/releases/12.13 by this push:
     new a8af4ecaac1 netdev/netdev_ioctl: log in hex mode for ioctl cmd
a8af4ecaac1 is described below

commit a8af4ecaac1a7c2af6b8726fa089bceee5e47d16
Author: shichunma <[email protected]>
AuthorDate: Tue Mar 3 21:25:12 2026 +0800

    netdev/netdev_ioctl: log in hex mode for ioctl cmd
    
    It's a more friendly when output cmd in hex mode, since it's defined like: 
0x7xx
    
    Signed-off-by: Jerry Ma <[email protected]>
---
 net/netdev/netdev_ioctl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/netdev/netdev_ioctl.c b/net/netdev/netdev_ioctl.c
index 3b7ccb27731..66d4b7ecc06 100644
--- a/net/netdev/netdev_ioctl.c
+++ b/net/netdev/netdev_ioctl.c
@@ -579,7 +579,7 @@ static int netdev_cell_ioctl(FAR struct socket *psock, int 
cmd,
   FAR struct net_driver_s *dev = NULL;
   int ret = -ENOTTY;
 
-  ninfo("cmd: %d\n", cmd);
+  ninfo("cmd: 0x%04x\n", cmd);
 
   if (_CELLIOCVALID(cmd))
     {
@@ -827,7 +827,7 @@ static int netdev_ifr_ioctl(FAR struct socket *psock, int 
cmd,
   unsigned int idx = 0;
   int ret = OK;
 
-  ninfo("cmd: %d\n", cmd);
+  ninfo("cmd: 0x%04x\n", cmd);
 
   /* Execute commands that do not need ifr_name or lifr_name */
 
@@ -1378,7 +1378,7 @@ static int netdev_imsf_ioctl(FAR struct socket *psock, 
int cmd,
   FAR struct net_driver_s *dev;
   int ret = -EINVAL;
 
-  ninfo("cmd: %d\n", cmd);
+  ninfo("cmd: 0x%04x\n", cmd);
 
   /* Execute the command */
 

Reply via email to