The function behaves differently depending on whether priv->ext_reset and priv->suspend_in_lpm is set. To make the debugging prints more useful add this information into the debug message. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- drivers/watchdog/imxwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/imxwd.c b/drivers/watchdog/imxwd.c index 2ec9d0d59635..bfc47bb8dd75 100644 --- a/drivers/watchdog/imxwd.c +++ b/drivers/watchdog/imxwd.c @@ -116,7 +116,8 @@ static int imx21_watchdog_set_timeout(struct imx_wd *priv, unsigned timeout) { u16 val; - dev_dbg(priv->dev, "%s: %d\n", __func__, timeout); + dev_dbg(priv->dev, "%s: %d extrst=%u suspend=%u\n", + __func__, timeout, priv->ext_reset, priv->suspend_in_lpm); if (timeout == 0) /* bit 2 (WDE) cannot be set to 0 again */ return -ENOSYS; -- 2.39.2