From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4] thermal: imx_thermal: Do not print on error
Date: Sun, 13 Sep 2015 10:50:20 +0200 [thread overview]
Message-ID: <55F538CC.4010800@denx.de> (raw)
In-Reply-To: <1441734192-21326-1-git-send-email-fabio.estevam@freescale.com>
On 08/09/2015 19:43, Fabio Estevam wrote:
> It is not very useful to have the message below on every boot
> (especially when we are using early silicon):
>
> U-Boot 2015.10-rc2-23945-g37cf215 (Sep 08 2015 - 14:12:14 -0300)
>
> CPU: Freescale i.MX6UL rev1.0 792 MHz (running at 396 MHz)
> CPU: Commercial temperature grade (0C to 95C)CPU: Thermal invalid data, fuse: 0x0
> - invalid sensor device
>
> , so turn the error message into debug level.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> drivers/thermal/imx_thermal.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c
> index 3c6c967..04c43d7 100644
> --- a/drivers/thermal/imx_thermal.c
> +++ b/drivers/thermal/imx_thermal.c
> @@ -159,7 +159,7 @@ static int imx_thermal_probe(struct udevice *dev)
>
> /* Check for valid fuse */
> if (fuse == 0 || fuse == ~0) {
> - printf("CPU: Thermal invalid data, fuse: 0x%x\n", fuse);
> + debug("CPU: Thermal invalid data, fuse: 0x%x\n", fuse);
> return -EPERM;
> }
>
>
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
prev parent reply other threads:[~2015-09-13 8:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-08 17:43 [U-Boot] [PATCH 1/4] thermal: imx_thermal: Do not print on error Fabio Estevam
2015-09-08 17:43 ` [U-Boot] [PATCH 2/4] imx-common: cpu: Do not print on invalid temperature Fabio Estevam
2015-09-08 17:43 ` [U-Boot] [PATCH 3/4] mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT Fabio Estevam
2015-09-09 3:29 ` Peng Fan
2015-09-09 7:37 ` Stefano Babic
2015-09-09 12:26 ` Fabio Estevam
2015-09-09 12:45 ` Otavio Salvador
2015-09-09 13:36 ` Stefano Babic
2015-09-09 13:33 ` Peng Fan
2015-09-09 15:47 ` Fabio Estevam
2015-09-13 8:54 ` Stefano Babic
2015-09-08 17:43 ` [U-Boot] [PATCH 4/4] mx6ul_14x14_evk: Add a README file Fabio Estevam
2015-09-13 8:50 ` Stefano Babic [this message]
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=55F538CC.4010800@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox