mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 2/2] ddr: imx8m: use pr_warn instead of plain prints
Date: Mon,  5 Dec 2022 14:28:35 +0100	[thread overview]
Message-ID: <20221205132835.3002605-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20221205132835.3002605-1-a.fatoum@pengutronix.de>

We already have a pr_fmt, but we aren't making use of this. Change that.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/ddr/imx8m/ddrphy_utils.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/ddr/imx8m/ddrphy_utils.c b/drivers/ddr/imx8m/ddrphy_utils.c
index 3e03d4b75c9e..98e6ae648aed 100644
--- a/drivers/ddr/imx8m/ddrphy_utils.c
+++ b/drivers/ddr/imx8m/ddrphy_utils.c
@@ -210,7 +210,7 @@ static void dram_enable_bypass(enum ddr_rate drate)
 	const struct imx8m_bypass_config *config = &imx8m_bypass_table[drate];
 
 	if (!config->valid) {
-		printf("No matched freq table entry %u\n", drate);
+		pr_warn("No matched freq table entry %u\n", drate);
 		return;
 	}
 
@@ -239,7 +239,7 @@ static int dram_frac_pll_init(enum ddr_rate drate)
 	const struct imx8mm_fracpll_config *config = &imx8mm_fracpll_table[drate];
 
 	if (!config->valid) {
-		printf("No matched freq table entry %u\n", drate);
+		pr_warn("No matched freq table entry %u\n", drate);
 		return -EINVAL;
 	}
 
@@ -284,7 +284,7 @@ static int dram_sscg_pll_init(enum ddr_rate drate)
 	const struct imx8mq_ssgcpll_config *config = &imx8mq_ssgcpll_table[drate];
 
 	if (!config->valid) {
-		printf("No matched freq table entry %u\n", drate);
+		pr_warn("No matched freq table entry %u\n", drate);
 		return -EINVAL;
 	}
 
-- 
2.30.2




  reply	other threads:[~2022-12-05 13:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-05 13:28 [PATCH 1/2] ddr: imx8m: warn about unsupported frequencies Ahmad Fatoum
2022-12-05 13:28 ` Ahmad Fatoum [this message]
2022-12-07  6:56 ` Sascha Hauer

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=20221205132835.3002605-2-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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