kernel: remove vestigal printk references
Logging is now used for these situations. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
9d70a87f20
commit
cb1dd7465b
5 changed files with 4 additions and 7 deletions
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <sys/printk.h>
|
|
||||||
#include <sys/__assert.h>
|
#include <sys/__assert.h>
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
#include <logging/log_ctrl.h>
|
#include <logging/log_ctrl.h>
|
||||||
|
@ -96,7 +95,7 @@ void z_fatal_error(unsigned int reason, const z_arch_esf_t *esf)
|
||||||
* See #17656
|
* See #17656
|
||||||
*
|
*
|
||||||
* if (k_is_in_isr()) {
|
* if (k_is_in_isr()) {
|
||||||
* printk("Fault during interrupt handling\n");
|
* LOG_ERR("Fault during interrupt handling\n");
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <sys/printk.h>
|
|
||||||
#include <sys/math_extras.h>
|
#include <sys/math_extras.h>
|
||||||
#include <kernel_internal.h>
|
#include <kernel_internal.h>
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
|
@ -404,7 +403,7 @@ static inline int z_obj_validation_check(struct _k_object *ko,
|
||||||
|
|
||||||
ret = z_object_validate(ko, otype, init);
|
ret = z_object_validate(ko, otype, init);
|
||||||
|
|
||||||
#ifdef CONFIG_PRINTK
|
#ifdef CONFIG_LOG
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
z_dump_object_error(ret, obj, ko, otype);
|
z_dump_object_error(ret, obj, ko, otype);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
|
|
||||||
#include <spinlock.h>
|
#include <spinlock.h>
|
||||||
#include <kernel_structs.h>
|
#include <kernel_structs.h>
|
||||||
#include <sys/printk.h>
|
|
||||||
#include <sys/math_extras.h>
|
#include <sys/math_extras.h>
|
||||||
#include <sys_clock.h>
|
#include <sys_clock.h>
|
||||||
#include <drivers/timer/system_timer.h>
|
#include <drivers/timer/system_timer.h>
|
||||||
|
|
|
@ -66,7 +66,7 @@ const char *otype_to_str(enum k_objects otype)
|
||||||
* GCC and these literal strings would appear in the binary even if
|
* GCC and these literal strings would appear in the binary even if
|
||||||
* otype_to_str was omitted by the linker
|
* otype_to_str was omitted by the linker
|
||||||
*/
|
*/
|
||||||
#ifdef CONFIG_PRINTK
|
#ifdef CONFIG_LOG
|
||||||
switch (otype) {
|
switch (otype) {
|
||||||
/* otype-to-str.h is generated automatically during build by
|
/* otype-to-str.h is generated automatically during build by
|
||||||
* gen_kobject_list.py
|
* gen_kobject_list.py
|
||||||
|
|
|
@ -20,7 +20,7 @@ static struct _k_object *validate_any_object(void *obj)
|
||||||
*/
|
*/
|
||||||
ret = z_object_validate(ko, K_OBJ_ANY, _OBJ_INIT_ANY);
|
ret = z_object_validate(ko, K_OBJ_ANY, _OBJ_INIT_ANY);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
#ifdef CONFIG_PRINTK
|
#ifdef CONFIG_LOG
|
||||||
z_dump_object_error(ret, obj, ko, K_OBJ_ANY);
|
z_dump_object_error(ret, obj, ko, K_OBJ_ANY);
|
||||||
#endif
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue