CV-Bowen opened a new pull request, #22564: URL: https://github.com/apache/nuttx/pull/22564
## Summary The dump and ping output of rpmsg, rpmsg_port, rpmsg_virtio, rpmsg_router_edge and rpmsg_test goes through `syslog(LOG_EMERG, ...)`. Use the `_emerg()` macro from `<debug.h>` instead, as virtio and vhost do since #22549 and #22552, and drop `<syslog.h>` where nothing else needs it. After this nothing under drivers/rpmsg calls `syslog(LOG_EMERG, ...)`. ## Impact None functionally: `_emerg()` logs at `LOG_EMERG` like the calls it replaces. With `CONFIG_DEBUG_FUNCTIONNAME` the lines are now prefixed with the function name, as the rest of the driver output is. ## Testing Host: Ubuntu 22.04.5 LTS x86_64, QEMU version 10.2.1, sim: cc (Ubuntu 13.1.0-8ubuntu1~22.04) 13.1.0, qemu-armv8a: aarch64-none-elf-gcc (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205 sim:rpserver + `CONFIG_RPMSG_TEST=y CONFIG_RPMSG_ROUTER=y` builds, so `rpmsg_test.c` and `rpmsg_router_edge.c` are compiled too; the one warning in that build is the existing `-Wformat-truncation` at `rpmsg_router_edge.c:454`, a line this PR does not touch. `rpmsg_port.c` is built by qemu-armv8a:rpserver/rpproxy (rpmsg_port_uart). `rpmsg dump all` and `rpmsg ping` print through the changed calls: ``` [ 6.520288] [server] rpmsg_virtio_dump: Local: server Remote: proxy Headrx 24 Headtx 27 [ 6.520317] [server] rpmsg_virtio_dump: Dump rpmsg info between cpu (master: yes)server <==> proxy: [ 6.521064] [server] rpmsg_virtio_dump: rpmsg vq RX: [ 6.521135] [server] rpmsg_virtio_dump: rpmsg vq TX: ``` No regression in rpmsg: sim:rpserver/rpproxy and qemu-armv8a:rpserver/rpproxy boot and pass the fixed rpmsg cases (dump, ping, rpmsgfs; 15/15). qemu-armv8a was built with LIBC_ENVPATH and BINFMT_CHECKEXEC disabled, which current master needs for nxinit to start nsh there; unrelated to this change. checkpatch passes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
