u-boot/test/cmd
Peter Hoyes b4fae89c48 fdt: Make fdt addr -q quieter
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@arm.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-04-03 06:53:53 +12:00
..
addrmap.c addrmap: Support on sandbox 2022-07-26 02:30:56 -06:00
exit.c test: exit: fix run_commandf() warnings 2023-03-30 15:09:59 -04:00
fdt.c fdt: Make fdt addr -q quieter 2023-04-03 06:53:53 +12:00
font.c video console: move vidconsole_get_font_size() logic to driver ops 2023-03-07 15:59:21 +01:00
loadm.c cmd: load: add load command for memory mapped 2022-06-22 11:35:47 -04:00
Makefile test: Add test for new command pci_mps 2023-03-30 15:09:59 -04:00
mem.c test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
mem_search.c display_options: Drop two spaces before the ASCII column 2021-06-08 11:39:09 -04:00
pci_mps.c test: Add test for new command pci_mps 2023-03-30 15:09:59 -04:00
pinmux.c test: dm: pinmux: Get LED2 udevice in the pinmux test 2022-04-28 09:26:44 -04:00
pwm.c test: Wrap assert macros in ({ ... }) and fix missing semicolons 2023-03-14 16:08:51 -06:00
rw.c test: add tests of 'read' and 'write' shell commands 2023-03-17 17:27:51 -04:00
seama.c cmd: Add a SEAMA image load command 2023-02-06 17:10:15 -05:00
setexpr.c test: Disable part of the setexpr test for now 2022-11-22 15:14:25 -07:00
temperature.c test: cmd: add test for temperature command 2022-10-11 16:03:04 -04:00
test_echo.c hush: Fix assignments being misinterpreted as commands 2021-04-12 17:17:11 -04:00
test_pause.c cmd: Add pause command 2022-09-02 13:40:42 -04:00
wget.c test: cmd: add test for wget command. 2022-11-28 13:06:40 -05:00