kernel: Cleanup logger setup in kernel files

Most of kernel files where declaring os module without providing
log level. Because of that default log level was used instead of
CONFIG_KERNEL_LOG_LEVEL.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2020-11-26 19:32:34 +01:00 committed by Anas Nashif
commit 3ed8083dc1
31 changed files with 34 additions and 45 deletions

View file

@ -12,10 +12,8 @@
#include <stdbool.h>
#include <spinlock.h>
#include <sys/libc-hooks.h>
#define LOG_LEVEL CONFIG_KERNEL_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_DECLARE(os);
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
struct k_spinlock z_mem_domain_lock;
static uint8_t max_partitions;