Suppress line breaks when using LOG_INF etc with RTT and Segger #debugging
justin.leavesley@...
I would have thought this was easy but I cannot seem to find a way to prevent LOG_INF etc from adding a line break to the log string. I have found the following log flag definition in log_output.h #define LOG_OUTPUT_FLAG_CRLF_NONE BIT(4) But I cannot see how to set this flag in the build and config system so that the logging picks it up.
Thanks, Justin |
|
Chruściński, Krzysztof
Hi Justin,
It is an option flag that can be used with log_output module which is a helper module for formatting log messages. Most of backends does not use it. It can be easily added to certain backend if needed as a Kconfig option. Feel free to open a Pull Request or let me know which backend you are using.
Regards, Krzysztof
From: users@... <users@...>
On Behalf Of justin.leavesley via lists.zephyrproject.org
Sent: Saturday, April 2, 2022 11:11 AM To: users@... Subject: [Zephyr-users] Suppress line breaks when using LOG_INF etc with RTT and Segger #debugging
I would have thought this was easy but I cannot seem to find a way to prevent LOG_INF etc from adding a line break to the log string. I have found the following log flag definition in log_output.h #define LOG_OUTPUT_FLAG_CRLF_NONE BIT(4) But I cannot see how to set this flag in the build and config system so that the logging picks it up.
Thanks, Justin
|
|