[PATCH v2] fdt: Make fdt addr -q quieter
Marek Vasut
marek.vasut at mailbox.org
Tue Mar 21 16:19:00 CET 2023
On 3/21/23 14:01, Peter Hoyes wrote:
> From: Peter Hoyes <Peter.Hoyes at arm.com>
>
> 64597346 "fdt: Add -q option to fdt addr for distro_bootcmd" introduced
> the -q option for fdt addr, which sets the current working fdt address
> without printing any output.
>
> baf41410 "fdt: Show a message when the working FDT changes" made the
> utility function set_working_fdt_addr (in cmd/fdt.c) output a message
> on each invocation, even if called via fdt addr -q, in which case its
> output is now slightly noisier.
>
> To fix this, split out set_working_fdt_addr into set_working_fdt_addr
> plus the static function set_working_fdt_addr_quiet.
> set_working_fdt_addr_quiet can be called by "quiet" fdt cmd logic and
> set_working_fdt_addr is exported (as before) to other boot logic. The
> latter calls the former.
>
> Remove the assertion from the fdt addr test case when calling with the
> -q argument.
>
> Signed-off-by: Peter Hoyes <Peter.Hoyes at arm.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
Thanks !
More information about the U-Boot
mailing list