Skip to content

[Debug] s/WDBG/DBG and always terminate a log messager with a new line

Florian Fischer requested to merge aj46ezos/emper:cleanup-debug4 into master

Rename the macro used to build up the debug message, to better reflect its generality.
It can be used anywhere to build a string with C++ stream formatting.

std::string s = EMPER_BUILD_STR("foo = " << 1 " , bar = " << bar(42));

Since WDBG was the only log macro without a terminating newline, which was in fact broken according to flow, we can remove it and the new line handling code in the LOG macro.

Edited by Florian Fischer

Merge request reports

Loading