logging: Deprecate v1, default to v2
Reduced logging mode selection to deferred, immediate, minimal and frontend. Decoupled logging version from mode and created CONFIG_LOG1 which can be used to explicitly select deprecated version. From now on, chosing CONFIG_LOG_MODE_{IMMEDIATE,DEFERRED} will result in version2. Deprecated CONFIG_LOG2_MODE_{IMMEDIATE,DEFERRED} with cmake warning. Codebase adapted to those changes. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
dd4035c624
commit
262cc55609
47 changed files with 199 additions and 178 deletions
|
@ -366,8 +366,8 @@ static int cmd_log_strdup_utilization(const struct shell *shell,
|
|||
size_t argc, char **argv)
|
||||
{
|
||||
|
||||
/* Defines needed when string duplication is disabled (LOG_IMMEDIATE is
|
||||
* on). In that case, this function is not compiled in.
|
||||
/* Defines needed when string duplication is disabled (LOG2 or immediate
|
||||
* mode). In that case, this function is not compiled in.
|
||||
*/
|
||||
#ifndef CONFIG_LOG_STRDUP_BUF_COUNT
|
||||
#define CONFIG_LOG_STRDUP_BUF_COUNT 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue