summaryrefslogtreecommitdiffstats
path: root/commands/devinfo.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-07-03 12:39:17 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-07-03 15:22:18 +0200
commit9e8899d2a5f4318f50d1a32af6309cf254b656bd (patch)
treeb9773bedd37c8b3436095945e75a61afd763c965 /commands/devinfo.c
parenta3cd8b2cca3d5cd770ebb9a28411fcfa54837415 (diff)
downloadbarebox-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/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 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