Re: Logging with a string via %s


Marc Herbert
 

On 17 May 2019, at 07:24, Boie, Andrew P <andrew.p.boie@intel.com> wrote:

For an operating system that aims to support various functional safety certifications, asynchronous rendering of %s is a terrible idea.

Such a "sharp tool" should at least not look exactly like the slow but safe version used absolutely everywhere else.

http://www.catb.org/~esr/writings/taouu/html/ch01s03.html#rule-surprise

On the same "least astonishment" principle, I think most developers expect degraded performance when logging.

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