logging: use os as a domain for low level system debugging

We had both kernel and os as domains covering low level layers, just use
one and fix the issue of the os domain not being registered.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-06-04 13:42:17 -04:00 committed by Andrew Boie
commit 6d359df592
3 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ static inline void stack_analyze(const char *name, const char *stack,
unsigned int size) unsigned int size)
{ {
if (IS_ENABLED(CONFIG_INIT_STACKS)) { if (IS_ENABLED(CONFIG_INIT_STACKS)) {
LOG_MODULE_DECLARE(kernel, CONFIG_KERNEL_LOG_LEVEL); LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
unsigned int unused = stack_unused_space_get(stack, size); unsigned int unused = stack_unused_space_get(stack, size);
unsigned int pcnt = ((size - unused) * 100U) / size; unsigned int pcnt = ((size - unused) * 100U) / size;

View file

@ -38,7 +38,7 @@
#define IDLE_THREAD_NAME "idle" #define IDLE_THREAD_NAME "idle"
#define LOG_LEVEL CONFIG_KERNEL_LOG_LEVEL #define LOG_LEVEL CONFIG_KERNEL_LOG_LEVEL
#include <logging/log.h> #include <logging/log.h>
LOG_MODULE_REGISTER(kernel); LOG_MODULE_REGISTER(os);
/* boot banner items */ /* boot banner items */
#if defined(CONFIG_MULTITHREADING) && defined(CONFIG_BOOT_DELAY) \ #if defined(CONFIG_MULTITHREADING) && defined(CONFIG_BOOT_DELAY) \

View file

@ -36,7 +36,7 @@ K_APPMEM_PARTITION_DEFINE(k_mbedtls_partition);
#define LOG_LEVEL CONFIG_KERNEL_LOG_LEVEL #define LOG_LEVEL CONFIG_KERNEL_LOG_LEVEL
#include <logging/log.h> #include <logging/log.h>
LOG_MODULE_DECLARE(kernel); LOG_MODULE_DECLARE(os);
/* The originally synchronization strategy made heavy use of recursive /* The originally synchronization strategy made heavy use of recursive
* irq_locking, which ports poorly to spinlocks which are * irq_locking, which ports poorly to spinlocks which are