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
commit 2d4b711b45d19e41a3e8d431e3cce01497ebee2d Author: likun17 <[email protected]> AuthorDate: Tue Apr 14 19:10:27 2026 +0800 drivers/sensors/sensor_rpmsg: Log ioctls that match no stub. sensor_rpmsg_ioctl_handler() silently drops an ioctl when no stub matches the endpoint, and the caller on the remote core waits without any hint of what happened. Print the path, command, cookie and remote CPU name in that case. Signed-off-by: likun17 <[email protected]> --- drivers/sensors/sensor_rpmsg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/sensors/sensor_rpmsg.c b/drivers/sensors/sensor_rpmsg.c index d9d1123975d..3ae44d174be 100644 --- a/drivers/sensors/sensor_rpmsg.c +++ b/drivers/sensors/sensor_rpmsg.c @@ -1541,10 +1541,14 @@ static int sensor_rpmsg_ioctl_handler(FAR struct rpmsg_endpoint *ept, } } - break; + sensor_rpmsg_unlock(dev); + return 0; } } + snerr("ERROR: ioctl stub not found:%s, cmd:%" PRId32 ", cookie:%" PRIu64 + ", %s\n", dev->path, msg->request, msg->cookie, + rpmsg_get_cpuname(ept->rdev)); sensor_rpmsg_unlock(dev); return 0; }
