mgmt: ec_host_cmd: backend: shi_npcx: fix log message

This commit fixes the content of the log messages that appear when an
error occurs while applying the pinctrl.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
This commit is contained in:
Jun Lin 2025-07-01 13:52:16 +08:00 committed by Daniel DeGrasse
parent d732a51d56
commit aa3db8e5bb

View File

@ -846,7 +846,7 @@ static int shi_npcx_enable(const struct device *dev)
/* Configure pin control for SHI */
ret = pinctrl_apply_state(config->pcfg, PINCTRL_STATE_DEFAULT);
if (ret < 0) {
LOG_ERR("shi_npcx pinctrl setup failed (%d)", ret);
LOG_ERR("Pinctrl apply DEFAULT fail (%d)", ret);
return ret;
}
@ -877,7 +877,7 @@ static int shi_npcx_disable(const struct device *dev)
/* Configure pin control back to GPIO */
ret = pinctrl_apply_state(config->pcfg, PINCTRL_STATE_SLEEP);
if (ret < 0) {
LOG_ERR("KB Raw pinctrl setup failed (%d)", ret);
LOG_ERR("Pinctrl apply SLEEP fail (%d)", ret);
return ret;
}