]> git.dujemihanovic.xyz Git - linux.git/commit
net: mdiobus: Debug print fwnode handle instead of raw pointer
authorAlexander Dahl <ada@thorsis.com>
Fri, 6 Sep 2024 06:22:56 +0000 (08:22 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Sep 2024 10:24:17 +0000 (12:24 +0200)
commit525034e2e2ee60d31519af0919e374b0032a70de
tree65918f108b2320258fbc20aee0b9b05bdaebd01d
parentf8406a2fd279d05eb4a76c9b77cb740b6f350549
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>
drivers/net/mdio/fwnode_mdio.c