File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
menu "General Kernel Options"
11
11
12
+ module = KERNEL
13
+ module-str = kernel
14
+ source "subsys/logging/Kconfig.template.log_config"
15
+
12
16
config MULTITHREADING
13
17
bool "Multi-threading"
14
18
default y
Original file line number Diff line number Diff line change 33
33
#include <logging/log_ctrl.h>
34
34
#include <tracing.h>
35
35
36
+ #define LOG_LEVEL CONFIG_KERNEL_LOG_LEVEL
37
+ #include <logging/log.h>
38
+ LOG_MODULE_REGISTER (kernel );
39
+
36
40
/* kernel build timestamp items */
37
41
#define BUILD_TIMESTAMP "BUILD: " __DATE__ " " __TIME__
38
42
Original file line number Diff line number Diff line change 16
16
#include <syscall_handler.h>
17
17
#include <device.h>
18
18
#include <init.h>
19
- #include <logging/sys_log.h>
19
+
20
+ #define LOG_LEVEL CONFIG_KERNEL_LOG_LEVEL
21
+ #include <logging/log.h>
22
+ LOG_MODULE_DECLARE (kernel );
23
+
20
24
#if defined(CONFIG_NETWORKING ) && defined (CONFIG_DYNAMIC_OBJECTS )
21
25
/* Used by auto-generated obj_size_get() switch body, as we need to
22
26
* know the size of struct net_context
@@ -221,7 +225,7 @@ void *_impl_k_object_alloc(enum k_objects otype)
221
225
222
226
dyn_obj = z_thread_malloc (sizeof (* dyn_obj ) + obj_size_get (otype ));
223
227
if (!dyn_obj ) {
224
- SYS_LOG_WRN ("could not allocate kernel object" );
228
+ LOG_WRN ("could not allocate kernel object" );
225
229
return NULL ;
226
230
}
227
231
You can’t perform that action at this time.
0 commit comments