Message ID | 20240906062256.11289-1-ada@thorsis.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 525034e2e2ee60d31519af0919e374b0032a70de |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next,v2] net: mdiobus: Debug print fwnode handle instead of raw pointer | expand |
Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni <pabeni@redhat.com>: On Fri, 6 Sep 2024 08:22:56 +0200 you wrote: > 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 > > [...] Here is the summary with links: - [net-next,v2] net: mdiobus: Debug print fwnode handle instead of raw pointer https://git.kernel.org/netdev/net-next/c/525034e2e2ee You are awesome, thank you!
diff --git a/drivers/net/mdio/fwnode_mdio.c b/drivers/net/mdio/fwnode_mdio.c index fd02f5cbc853..b156493d7084 100644 --- a/drivers/net/mdio/fwnode_mdio.c +++ b/drivers/net/mdio/fwnode_mdio.c @@ -7,6 +7,7 @@ */ #include <linux/acpi.h> +#include <linux/dev_printk.h> #include <linux/fwnode_mdio.h> #include <linux/of.h> #include <linux/phy.h> @@ -104,7 +105,7 @@ int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio, return rc; } - dev_dbg(&mdio->dev, "registered phy %p fwnode at address %i\n", + dev_dbg(&mdio->dev, "registered phy fwnode %pfw at address %i\n", child, addr); return 0; }