Re: RFC Common System logging API Rev. 2


Boie, Andrew P
 

CONFIG_SYS_LOG_ENABLE_PRINTF: specifies printf as backend.
CONFIG_SYS_LOG_ENABLE_PRINTK: specifies printk as backend.
I really think that officially supporting both printk() and printf() in the kernel is a bad idea. Having Zephyr depend on libc APIs really isn't the way to go. Zephyr should not care whether printf() exists or not.

The real "backend" should simply be the character output routine, an interface for emitting one character to an output device, whether a RAM buffer, IPM channel, UART, etc. Currently this is managed by ad hoc private APIs, but this would be a good thing to make official.

Andrew

Join devel@lists.zephyrproject.org to automatically receive all group messages.