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
|
@ -18,7 +18,7 @@
|
|||
#include "soc_power.h"
|
||||
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(uart_npcx, LOG_LEVEL_ERR);
|
||||
LOG_MODULE_REGISTER(uart_npcx, CONFIG_UART_LOG_LEVEL);
|
||||
|
||||
/* Driver config */
|
||||
struct uart_npcx_config {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue