uart: logging: Add configurable log level to UART drivers
This change adds compile-time selection of log level for the UART drivers. Signed-off-by: Pete Dietl <petedietl@gmail.com>
This commit is contained in:
parent
a6e35c6ab0
commit
060e39e75a
7 changed files with 13 additions and 8 deletions
|
@ -16,7 +16,7 @@
|
|||
#include <soc.h>
|
||||
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(uart_ite_it8xxx2, LOG_LEVEL_ERR);
|
||||
LOG_MODULE_REGISTER(uart_ite_it8xxx2, CONFIG_UART_LOG_LEVEL);
|
||||
|
||||
#if defined(CONFIG_PM_DEVICE) && defined(CONFIG_UART_CONSOLE_INPUT_EXPIRED)
|
||||
static struct uart_it8xxx2_data *uart_console_data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue