diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-07-03 12:39:17 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-07-03 15:22:18 +0200 |
commit | 9e8899d2a5f4318f50d1a32af6309cf254b656bd (patch) | |
tree | b9773bedd37c8b3436095945e75a61afd763c965 /commands | |
parent | a3cd8b2cca3d5cd770ebb9a28411fcfa54837415 (diff) | |
download | barebox-9e8899d2a5f4318f50d1a32af6309cf254b656bd.tar.gz barebox-9e8899d2a5f4318f50d1a32af6309cf254b656bd.tar.xz |
treewide: Print device nodes with %pOF
We have the %pOF format specifier for printing device nodes. Use it
where appropriate.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/devinfo.c | 2 | ||||
-rw-r--r-- | commands/of_display_timings.c | 4 | ||||
-rw-r--r-- | commands/of_dump.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/commands/devinfo.c b/commands/devinfo.c index 2487786c71..d89d8c2f0a 100644 --- a/commands/devinfo.c +++ b/commands/devinfo.c @@ -103,7 +103,7 @@ static int do_devinfo(int argc, char *argv[]) } #ifdef CONFIG_OFDEVICE if (dev->of_node) { - printf("Device node: %s\n", dev->of_node->full_name); + printf("Device node: %pOF\n", dev->of_node); of_print_nodes(dev->of_node, 0, ~0); } #endif diff --git a/commands/of_display_timings.c b/commands/of_display_timings.c index 1fb0c4eb00..4cc79ec88d 100644 --- a/commands/of_display_timings.c +++ b/commands/of_display_timings.c @@ -82,7 +82,7 @@ static int do_of_display_timings(int argc, char *argv[]) for_each_node_by_name_address_from(display, root, node) { for_each_child_of_node(display, timings) { - printf("%s\n", timings->full_name); + printf("%pOF\n", timings); found = 1; } } @@ -101,7 +101,7 @@ static int do_of_display_timings(int argc, char *argv[]) if (!timings) continue; - printf("%s\n", timings->full_name); + printf("%pOF\n", timings); found = 1; } diff --git a/commands/of_dump.c b/commands/of_dump.c index c77dc27c99..2508d4ce11 100644 --- a/commands/of_dump.c +++ b/commands/of_dump.c @@ -21,7 +21,7 @@ static void of_print_nodenames(struct device_node *node) { struct device_node *n; - printf("%s\n", node->full_name); + printf("%pOF\n", node); list_for_each_entry(n, &node->children, parent_list) { if (ctrlc()) |