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 /common/state/state.c | |
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 'common/state/state.c')
-rw-r--r-- | common/state/state.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/state/state.c b/common/state/state.c index 9940a91fe3..219309d715 100644 --- a/common/state/state.c +++ b/common/state/state.c @@ -621,7 +621,7 @@ struct state *state_new_from_node(struct device_node *node, bool readonly) alias = of_alias_get(node); if (!alias) { - pr_err("State node %s does not have an alias in the /aliases/ node\n", node->full_name); + pr_err("State node %pOF does not have an alias in the /aliases/ node\n", node); return ERR_PTR(-EINVAL); } @@ -653,13 +653,13 @@ struct state *state_new_from_node(struct device_node *node, bool readonly) goto out_release_state; } - pr_debug("%s: backend GPT partition looked up via PartitionTypeGUID\n", - node->full_name); + pr_debug("%pOF: backend GPT partition looked up via PartitionTypeGUID\n", + node); } state->backend_path = cdev_to_devpath(cdev, &offset, &size); - pr_debug("%s: backend resolved to %s\n", node->full_name, state->backend_path); + pr_debug("%pOF: backend resolved to %s\n", node, state->backend_path); state->backend_reproducible_name = of_get_reproducible_name(partition_node); |