logging: Refactor in preparation for logging v2
Refactor and cleanup in preparation for v2. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
67fade04a0
commit
ba1aa75c66
7 changed files with 196 additions and 165 deletions
|
@ -95,8 +95,6 @@ static int log_status(const struct shell *shell,
|
|||
uint32_t modules_cnt = log_sources_count();
|
||||
uint32_t dynamic_lvl;
|
||||
uint32_t compiled_lvl;
|
||||
uint32_t i;
|
||||
|
||||
|
||||
if (!log_backend_is_active(backend)) {
|
||||
shell_warn(shell, "Logs are halted!");
|
||||
|
@ -107,7 +105,7 @@ static int log_status(const struct shell *shell,
|
|||
shell_fprintf(shell, SHELL_NORMAL,
|
||||
"----------------------------------------------------------\r\n");
|
||||
|
||||
for (i = 0U; i < modules_cnt; i++) {
|
||||
for (int16_t i = 0U; i < modules_cnt; i++) {
|
||||
dynamic_lvl = log_filter_get(backend, CONFIG_LOG_DOMAIN_ID,
|
||||
i, true);
|
||||
compiled_lvl = log_filter_get(backend, CONFIG_LOG_DOMAIN_ID,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue