public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] dm: core: ofnode: Fix error message in ofnode_read_bootscript_address/flash()
@ 2023-09-11 13:30 Michal Simek
  2023-09-18  9:09 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2023-09-11 13:30 UTC (permalink / raw)
  To: u-boot, git; +Cc: Simon Glass

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>
---

 drivers/core/ofnode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c
index 2d82f38db36d..df2d7fdd535c 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;
 	}
 
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dm: core: ofnode: Fix error message in ofnode_read_bootscript_address/flash()
  2023-09-11 13:30 [PATCH] dm: core: ofnode: Fix error message in ofnode_read_bootscript_address/flash() Michal Simek
@ 2023-09-18  9:09 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2023-09-18  9:09 UTC (permalink / raw)
  To: u-boot, git; +Cc: Simon Glass



On 9/11/23 15:30, Michal Simek wrote:
> 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>
> ---
> 
>   drivers/core/ofnode.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c
> index 2d82f38db36d..df2d7fdd535c 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;
>   	}
>   

It is only called for our platform right that's why I will take it via my tree 
where origin patch is.

Applied.

Thanks,
Michal

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-18  9:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-11 13:30 [PATCH] dm: core: ofnode: Fix error message in ofnode_read_bootscript_address/flash() Michal Simek
2023-09-18  9:09 ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox