[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161007151129.6043-2-bhuvanchandra.dv@toradex.com>
Date: Fri, 7 Oct 2016 20:41:24 +0530
From: Bhuvanchandra DV <bhuvanchandra.dv@...adex.com>
To: <shawnguo@...nel.org>, <thierry.reding@...il.com>
CC: <stefan@...er.ch>, <l.majewski@...sung.com>, <robh+dt@...nel.org>,
<mark.rutland@....com>, <kernel@...gutronix.de>,
<fabio.estevam@....com>, <linux-pwm@...r.kernel.org>,
<devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
Lothar Wassmann <LW@...O-electronics.de>,
Bhuvanchandra DV <bhuvanchandra.dv@...adex.com>
Subject: [PATCH v3 1/6] pwm: print error messages with pr_err() instead of pr_debug()
From: Lothar Wassmann <LW@...O-electronics.de>
Make the messages that are printed in case of fatal errors actually
visible to the user without having to recompile the driver with
debugging enabled.
Signed-off-by: Lothar Waßmann <LW@...O-electronics.de>
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@...adex.com>
---
drivers/pwm/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
index 0dbd29e..195373e 100644
--- a/drivers/pwm/core.c
+++ b/drivers/pwm/core.c
@@ -661,13 +661,13 @@ struct pwm_device *of_pwm_get(struct device_node *np, const char *con_id)
err = of_parse_phandle_with_args(np, "pwms", "#pwm-cells", index,
&args);
if (err) {
- pr_debug("%s(): can't parse \"pwms\" property\n", __func__);
+ pr_err("%s(): can't parse \"pwms\" property\n", __func__);
return ERR_PTR(err);
}
pc = of_node_to_pwmchip(args.np);
if (IS_ERR(pc)) {
- pr_debug("%s(): PWM chip not found\n", __func__);
+ pr_err("%s(): PWM chip not found\n", __func__);
pwm = ERR_CAST(pc);
goto put;
}
--
2.10.0
Powered by blists - more mailing lists