Skip to content

Commit 2fc2b19

Browse files
ChiHuaLkartben
authored andcommitted
driver: eSPI: npcx: use CONFIG_ESPI_LOG_LEVEL
This commit replaces the hard-coded log level with CONFIG_ESPI_LOG_LEVEL. Signed-off-by: Jun Lin <[email protected]>
1 parent 17ccc5f commit 2fc2b19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/espi/host_subs_npcx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127

128128
#include <zephyr/logging/log.h>
129129
#include <zephyr/irq.h>
130-
LOG_MODULE_REGISTER(host_sub_npcx, LOG_LEVEL_ERR);
130+
LOG_MODULE_REGISTER(host_sub_npcx, CONFIG_ESPI_LOG_LEVEL);
131131

132132
struct host_sub_npcx_config {
133133
/* host module instances */
@@ -897,9 +897,9 @@ int npcx_host_periph_write_request(enum lpc_peripheral_opcode op,
897897
return -ENOTSUP;
898898
}
899899
if (data) {
900-
LOG_INF("%s: op 0x%x data %x", __func__, op, *data);
900+
LOG_DBG("op 0x%x data %x", op, *data);
901901
} else {
902-
LOG_INF("%s: op 0x%x only", __func__, op);
902+
LOG_DBG("op 0x%x only", op);
903903
}
904904

905905
switch (op) {

0 commit comments

Comments
 (0)