mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 3/3] hab: ahab: use pr_* for printing
Date: Mon, 15 Jul 2024 14:36:14 +0200	[thread overview]
Message-ID: <20240715123614.1940787-3-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20240715123614.1940787-1-s.hauer@pengutronix.de>

Use pr_* functions to get the messages into the log.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/hab/hab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/hab/hab.c b/drivers/hab/hab.c
index 5701e5feb5..800f26f26c 100644
--- a/drivers/hab/hab.c
+++ b/drivers/hab/hab.c
@@ -333,11 +333,11 @@ static int imx_ahab_lockdown_device(unsigned flags)
 
 	ret = ele_forward_lifecycle(ELE_LIFECYCLE_OEM_CLOSED, NULL);
 	if (ret) {
-		printf("failed to forward lifecycle to OEM closed\n");
+		pr_err("failed to forward lifecycle to OEM closed: %pe\n", ERR_PTR(ret));
 		return ret;
 	}
 
-	printf("Change to OEM closed successfully\n");
+	pr_info("Change to OEM closed successfully\n");
 
 	return 0;
 }
-- 
2.39.2




  parent reply	other threads:[~2024-07-15 12:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-15 12:36 [PATCH 1/3] hab: bail out with error when SRK hash write fails Sascha Hauer
2024-07-15 12:36 ` [PATCH 2/3] hab: ahab: cosmetic change Sascha Hauer
2024-07-15 12:36 ` Sascha Hauer [this message]
2024-07-16  7:03 ` [PATCH 1/3] hab: bail out with error when SRK hash write fails 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=20240715123614.1940787-3-s.hauer@pengutronix.de \
    --to=s.hauer@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