3 Commits

Author SHA1 Message Date
Simon Glass
a52a0036bc lib: Add fdt_print() to print a node
Extract the core device tree printing logic from fdt_print_path() into
a new fdt_print() function that takes a node offset parameter. This
allows printing from any node offset rather than requiring a path string.

Pass in the fdt, for more flexibility.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
2025-08-27 12:46:48 -06:00
Simon Glass
c70aa53c2a lib: Rename fdt_print() to fdt_print_path()
Rename the function to better indicate that it prints from a specific path
in the device tree.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-developed-by: Claude <noreply@anthropic.com>
2025-08-27 12:44:42 -06:00
Simon Glass
dd6f8cfbcb lib: Split fdt_print() into separate library file
Move fdt_print() function from cmd/fdt.c to a new lib/fdt_print.c file
to make it available as a library function for other code to use.

Move and rename is_printable_string(), making it available as well.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
2025-08-27 12:44:42 -06:00