[PATCH 3/3] hab: ahab: use pr_* for printing

Sascha Hauer s.hauer at pengutronix.de
Mon Jul 15 05:36:14 PDT 2024


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

Signed-off-by: Sascha Hauer <s.hauer at 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




More information about the barebox mailing list