Skip to content

Commit f1d3f6f

Browse files
committed
net: mdiobus: Debug print fwnode handle instead of raw pointer
JIRA: https://issues.redhat.com/browse/RHEL-78049 commit 525034e Author: Alexander Dahl <ada@thorsis.com> Date: Fri Sep 6 08:22:56 2024 +0200 net: mdiobus: Debug print fwnode handle instead of raw pointer Was slightly misleading before, because printed is pointer to fwnode, not to phy device, as placement in message suggested. Include header for dev_dbg() declaration while at it. Output before: [ +0.001247] mdio_bus f802c000.ethernet-ffffffff: registered phy 2612f00a fwnode at address 3 Output after: [ +0.001229] mdio_bus f802c000.ethernet-ffffffff: registered phy fwnode /ahb/apb/ethernet@f802c000/ethernet-phy@3 at address 3 Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Alexander Dahl <ada@thorsis.com> Link: https://patch.msgid.link/20240906062256.11289-1-ada@thorsis.com Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Jared Kangas <jkangas@redhat.com>
1 parent 7d6890e commit f1d3f6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/mdio/fwnode_mdio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
#include <linux/acpi.h>
10+
#include <linux/dev_printk.h>
1011
#include <linux/fwnode_mdio.h>
1112
#include <linux/of.h>
1213
#include <linux/phy.h>
@@ -99,7 +100,7 @@ int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio,
99100
return rc;
100101
}
101102

102-
dev_dbg(&mdio->dev, "registered phy %p fwnode at address %i\n",
103+
dev_dbg(&mdio->dev, "registered phy fwnode %pfw at address %i\n",
103104
child, addr);
104105
return 0;
105106
}

0 commit comments

Comments
 (0)