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:
Pete Dietl 2022-03-04 12:56:05 -08:00 committed by Anas Nashif
commit 060e39e75a
7 changed files with 13 additions and 8 deletions

View file

@ -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 {