Update the debug() print, use __func__ to always print matching
function name, and also print bus name in case there are multiple
busses.

Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Adam Ford <[email protected]>
Cc: Hai Pham <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Jerome Forissier <[email protected]>
Cc: Joe Hershberger <[email protected]>
Cc: Mario Six <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Paul Barker <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Ramon Fried <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
 drivers/net/phy/miiphybb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/miiphybb.c b/drivers/net/phy/miiphybb.c
index 5497b838225..9f5f9b12c9f 100644
--- a/drivers/net/phy/miiphybb.c
+++ b/drivers/net/phy/miiphybb.c
@@ -183,7 +183,7 @@ int bb_miiphy_read(struct mii_dev *miidev, int addr, int 
devad, int reg)
        bus->set_mdc(bus, 1);
        bus->delay(bus);
 
-       debug("miiphy_read(0x%x) @ 0x%x = 0x%04x\n", reg, addr, rdreg);
+       debug("%s[%s](0x%x) @ 0x%x = 0x%04x\n", __func__, miidev->name, reg, 
addr, rdreg);
 
        return rdreg;
 }
-- 
2.45.2

Reply via email to