From: Michal Simek <michal.simek@amd.com>
Date: Mon, 11 Sep 2023 13:30:01 +0000 (+0200)
Subject: dm: core: ofnode: Fix error message in ofnode_read_bootscript_address/flash()
X-Git-Tag: v2025.01-rc5-pxa1908~847^2~5^2~14
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=a5d2721bb2697306c7534e6c9f7c84c6bdc6a4d1;p=u-boot.git

dm: core: ofnode: Fix error message in ofnode_read_bootscript_address/flash()

Missing u-boot node shouldn't be visible in bootlog without debug enabled
that's why change message from printf to debug.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/ff62e980237ab271cf05facfbc306e85914a8c6e.1694438999.git.michal.simek@amd.com
---

diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c
index fb4447c84b..ff0a5b5164 100644
--- a/drivers/core/ofnode.c
+++ b/drivers/core/ofnode.c
@@ -1603,7 +1603,7 @@ int ofnode_read_bootscript_address(u64 *bootscr_address, u64 *bootscr_offset)
 
 	uboot = ofnode_path("/options/u-boot");
 	if (!ofnode_valid(uboot)) {
-		printf("%s: Missing /u-boot node\n", __func__);
+		debug("%s: Missing /u-boot node\n", __func__);
 		return -EINVAL;
 	}
 
@@ -1629,7 +1629,7 @@ int ofnode_read_bootscript_flash(u64 *bootscr_flash_offset,
 
 	uboot = ofnode_path("/options/u-boot");
 	if (!ofnode_valid(uboot)) {
-		printf("%s: Missing /u-boot node\n", __func__);
+		debug("%s: Missing /u-boot node\n", __func__);
 		return -EINVAL;
 	}