logging: Add LOG_RAW macro
Add macro for logging raw formatted string. It is similar to LOG_PRINTK macro but contrary to LOG_PRINTK it should not append carriage return character to any new line character found in the string. LOG_PRINTK processed by log_output module has that to mimic printk behavior. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
c7d37d956e
commit
dbda37ddf0
4 changed files with 36 additions and 5 deletions
|
@ -412,6 +412,11 @@ static bool msg_filter_check(struct log_backend const *backend,
|
|||
domain_id = log_msg_get_domain(&msg->log);
|
||||
source_id = source ? log_dynamic_source_id(source) : -1;
|
||||
|
||||
/* Accept all non-logging messages. */
|
||||
if (level == LOG_LEVEL_NONE) {
|
||||
return true;
|
||||
}
|
||||
|
||||
backend_level = log_filter_get(backend, domain_id,
|
||||
source_id, true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue