Skip to content

Commit 0c058fb

Browse files
Saravana Kannangregkh
authored andcommitted
driver core: fw_devlink: Print full path and name of fwnode
Some of the log messages were printing just the fwnode name. While it's short, it's not always uniquely identifiable in system. So print the full path and name to make debugging easier. Signed-off-by: Saravana Kannan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6309872 commit 0c058fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/base/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static int __fwnode_link_add(struct fwnode_handle *con,
9898

9999
list_add(&link->s_hook, &sup->consumers);
100100
list_add(&link->c_hook, &con->suppliers);
101-
pr_debug("%pfwP Linked as a fwnode consumer to %pfwP\n",
101+
pr_debug("%pfwf Linked as a fwnode consumer to %pfwf\n",
102102
con, sup);
103103

104104
return 0;
@@ -122,7 +122,7 @@ int fwnode_link_add(struct fwnode_handle *con, struct fwnode_handle *sup)
122122
*/
123123
static void __fwnode_link_del(struct fwnode_link *link)
124124
{
125-
pr_debug("%pfwP Dropping the fwnode link to %pfwP\n",
125+
pr_debug("%pfwf Dropping the fwnode link to %pfwf\n",
126126
link->consumer, link->supplier);
127127
list_del(&link->s_hook);
128128
list_del(&link->c_hook);
@@ -1062,7 +1062,7 @@ int device_links_check_suppliers(struct device *dev)
10621062
if (!dev_is_best_effort(dev)) {
10631063
fwnode_ret = -EPROBE_DEFER;
10641064
dev_err_probe(dev, -EPROBE_DEFER,
1065-
"wait for supplier %pfwP\n", sup_fw);
1065+
"wait for supplier %pfwf\n", sup_fw);
10661066
} else {
10671067
fwnode_ret = -EAGAIN;
10681068
}

0 commit comments

Comments
 (0)