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 <shichunma@bestechnic.com>
This commit is contained in:
shichunma
2026-03-03 21:25:12 +08:00
committed by Alan C. Assis
parent 0a6a2e5e04
commit 121e3ac9fc

View File

@@ -579,7 +579,7 @@ static int netdev_cell_ioctl(FAR struct socket *psock, int cmd,
FAR struct net_driver_s *dev = NULL; FAR struct net_driver_s *dev = NULL;
int ret = -ENOTTY; int ret = -ENOTTY;
ninfo("cmd: %d\n", cmd); ninfo("cmd: 0x%04x\n", cmd);
if (_CELLIOCVALID(cmd)) if (_CELLIOCVALID(cmd))
{ {
@@ -827,7 +827,7 @@ static int netdev_ifr_ioctl(FAR struct socket *psock, int cmd,
unsigned int idx = 0; unsigned int idx = 0;
int ret = OK; 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 */ /* 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; FAR struct net_driver_s *dev;
int ret = -EINVAL; int ret = -EINVAL;
ninfo("cmd: %d\n", cmd); ninfo("cmd: 0x%04x\n", cmd);
/* Execute the command */ /* Execute the command */