Skip to content
Permalink
Browse files

kernel: remove log system support for fatal msgs

This needs further design work due to problems with logging
C strings. Just send always to printk() for now until this
is resolved.

Fixes: #18052

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie committed Aug 6, 2019
1 parent b945b10 commit b6d961b7d455044fa5725be2b1bd1311a22655d2
Showing with 3 additions and 12 deletions.
  1. +3 −12 kernel/fatal.c
@@ -79,18 +79,9 @@ void z_fatal_print(const char *fmt, ...)
va_list ap;

va_start(ap, fmt);
if (IS_ENABLED(CONFIG_LOG)) {
struct log_msg_ids src_level = {
.level = LOG_LEVEL_ERR,
.source_id = LOG_CURRENT_MODULE_ID(),
.domain_id = CONFIG_LOG_DOMAIN_ID
};
log_generic(src_level, fmt, ap);
} else {
printk("FATAL: ");
vprintk(fmt, ap);
printk("\n");
}
printk("FATAL: ");
vprintk(fmt, ap);
printk("\n");
va_end(ap);
}
#endif /* CONFIG_LOG || CONFIG_PRINTK */

0 comments on commit b6d961b

Please sign in to comment.
You can’t perform that action at this time.