summaryrefslogtreecommitdiffstats
path: root/commands/devinfo.c
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 /commands/devinfo.c
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 'commands/devinfo.c')
-rw-r--r--commands/devinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/devinfo.c b/commands/devinfo.c
index 32fd55ebd5..e171ecc62c 100644
--- a/commands/devinfo.c
+++ b/commands/devinfo.c
@@ -104,7 +104,7 @@ static int do_devinfo(int argc, char *argv[])
#ifdef CONFIG_OFDEVICE
if (dev->device_node) {
printf("Device node: %s\n", dev->device_node->full_name);
- of_print_nodes(dev->device_node, 0);
+ of_print_nodes(dev->device_node, 0, ~0);
}
#endif
}