summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-08-08 08:56:39 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-08-08 13:18:38 +0200
commit22f4933e1914f6c97c3b9ecf796f0439d51fd6df (patch)
tree1d9228a280ed365e0ac258ac57536aaa8c4c19d4 /common
parent728174bc2e4c38830562decd13a8f1dae9b1df06 (diff)
downloadbarebox-22f4933e1914f6c97c3b9ecf796f0439d51fd6df.tar.gz
barebox-22f4933e1914f6c97c3b9ecf796f0439d51fd6df.tar.xz
commands: of_dump: support limiting size of printed properties
FIT images can have properties with very long values. Make it possible to use of_dump to inspect them by adding a -P option that restricts how much of the value is printed. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220808065639.453483-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/bootm.c2
-rw-r--r--common/image-fit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/bootm.c b/common/bootm.c
index 39c566e33b..c0f7bca6ce 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -461,7 +461,7 @@ int bootm_load_devicetree(struct image_data *data, void *fdt,
of_print_cmdline(data->of_root_node);
if (bootm_verbose(data) > 1)
- of_print_nodes(data->of_root_node, 0);
+ of_print_nodes(data->of_root_node, 0, ~0);
return 0;
}
diff --git a/common/image-fit.c b/common/image-fit.c
index a410632d70..507a857cad 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -641,7 +641,7 @@ static int fit_config_verify_signature(struct fit_handle *handle, struct device_
for_each_child_of_node(conf_node, sig_node) {
if (handle->verbose)
- of_print_nodes(sig_node, 0);
+ of_print_nodes(sig_node, 0, ~0);
ret = fit_verify_signature(sig_node, handle->fit);
if (ret < 0)
return ret;