From: "Lothar Waßmann" <LW@KARO-electronics.de> To: linux-pwm@vger.kernel.org Cc: "Thierry Reding" <thierry.reding@gmail.com>, linux-arm-kernel@lists.infradead.org, "Shawn Guo" <shawn.guo@linaro.org>, "Sascha Hauer" <s.hauer@pengutronix.de>, "Tony Prisk" <linux@prisktech.co.nz>, "Lothar Waßmann" <LW@KARO-electronics.de> Subject: [PATCHv5 1/3] pwm: print error messages with pr_err() instead of pr_debug() Date: Tue, 7 Oct 2014 15:55:32 +0200 [thread overview] Message-ID: <1412690134-13712-2-git-send-email-LW@KARO-electronics.de> (raw) In-Reply-To: <1412690134-13712-1-git-send-email-LW@KARO-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@KARO-electronics.de> Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de> --- 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 966497d..130bbea 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -525,13 +525,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; } -- 1.7.10.4
WARNING: multiple messages have this Message-ID (diff)
From: LW@KARO-electronics.de (Lothar Waßmann) To: linux-arm-kernel@lists.infradead.org Subject: [PATCHv5 1/3] pwm: print error messages with pr_err() instead of pr_debug() Date: Tue, 7 Oct 2014 15:55:32 +0200 [thread overview] Message-ID: <1412690134-13712-2-git-send-email-LW@KARO-electronics.de> (raw) In-Reply-To: <1412690134-13712-1-git-send-email-LW@KARO-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@KARO-electronics.de> Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de> --- 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 966497d..130bbea 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -525,13 +525,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; } -- 1.7.10.4
next prev parent reply other threads:[~2014-10-07 13:55 UTC|newest] Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-10-07 13:55 [PATCHv4 0/3] pwm: imx: support output polarity inversion Lothar Waßmann 2014-10-07 13:55 ` Lothar Waßmann 2014-10-07 13:55 ` Lothar Waßmann [this message] 2014-10-07 13:55 ` [PATCHv5 1/3] pwm: print error messages with pr_err() instead of pr_debug() Lothar Waßmann 2014-10-07 13:55 ` [PATCHv5 2/3] pwm: make the PWM_POLARITY flag in DTB optional Lothar Waßmann 2014-10-07 13:55 ` Lothar Waßmann 2014-10-09 15:16 ` Thierry Reding 2014-10-09 15:16 ` Thierry Reding 2014-10-10 14:22 ` [PATCHv6 0/3] pwm: imx: support output polarity inversion Lothar Waßmann 2014-10-10 14:22 ` Lothar Waßmann 2014-10-10 14:22 ` [PATCHv6 1/3] pwm: print error messages with pr_err() instead of pr_debug() Lothar Waßmann 2014-10-10 14:22 ` Lothar Waßmann 2014-10-10 14:22 ` [PATCHv6 2/3] pwm: make the PWM_POLARITY flag in DTB optional Lothar Waßmann 2014-10-10 14:22 ` Lothar Waßmann 2014-10-10 14:22 ` [PATCH 3/3] pwm: imx: support output polarity inversion Lothar Waßmann 2014-10-10 14:22 ` Lothar Waßmann 2016-09-08 22:15 ` [PATCHv6 0/3] " Stefan Agner 2016-09-08 22:15 ` Stefan Agner 2016-09-09 7:18 ` Lothar Waßmann 2016-09-09 7:18 ` Lothar Waßmann 2016-09-12 12:45 ` Alexandre Belloni 2016-09-12 12:45 ` Alexandre Belloni 2016-09-12 14:04 ` Uwe Kleine-König 2016-09-12 14:04 ` Uwe Kleine-König 2016-09-12 16:51 ` Stefan Agner 2016-09-12 16:51 ` Stefan Agner 2016-09-12 20:00 ` Uwe Kleine-König 2016-09-12 20:00 ` Uwe Kleine-König 2016-09-12 21:12 ` Clemens Gruber 2016-09-12 21:12 ` Clemens Gruber 2016-09-13 6:45 ` Uwe Kleine-König 2016-09-13 6:45 ` Uwe Kleine-König 2016-09-12 13:54 ` Vladimir Zapolskiy 2016-09-12 13:54 ` Vladimir Zapolskiy 2014-10-07 13:55 ` [PATCHv5 3/3] " Lothar Waßmann 2014-10-07 13:55 ` Lothar Waßmann
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1412690134-13712-2-git-send-email-LW@KARO-electronics.de \ --to=lw@karo-electronics.de \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-pwm@vger.kernel.org \ --cc=linux@prisktech.co.nz \ --cc=s.hauer@pengutronix.de \ --cc=shawn.guo@linaro.org \ --cc=thierry.reding@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.