anchao commented on PR #16977: URL: https://github.com/apache/nuttx/pull/16977#issuecomment-3266506681
> But printk() is the default print function of Linux kernel, zephyr, etc... It will make confusion to someone starting developing with NuttX. It is better to use some existing and uniform function to do it. > > If you don't want to modify the existing syslog, please rename this printk() to nxsyslog(), but I don't think that nxsyslog() is a good name, because it will imply syslog() for the kernel and in fact the syslog() is already used in the kernel. @acassis syslog isn't Nuttx's only printing function. Nuttx implements it because it's a POSIX/OpenGroup standard implementation. https://pubs.opengroup.org/onlinepubs/009604499/basedefs/syslog.h.html The printk function in this PR provides a kernel API that supports synchronous printing at the kernel level. I think we shouldn't conflate them. -- 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]
