[PATCH rtems 14/18] mv643xx_eth.c: fixed format in debugging message

Vijay Kumar Banerjee vijay at rtems.org
Tue Mar 30 01:27:46 UTC 2021


From: till straumann <till.straumann at alumni.tu-berlin.de>

Update #4344
---
 bsps/powerpc/beatnik/net/if_mve/mv643xx_eth.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/bsps/powerpc/beatnik/net/if_mve/mv643xx_eth.c b/bsps/powerpc/beatnik/net/if_mve/mv643xx_eth.c
index 82ecf5ffa4..fb72ee132e 100644
--- a/bsps/powerpc/beatnik/net/if_mve/mv643xx_eth.c
+++ b/bsps/powerpc/beatnik/net/if_mve/mv643xx_eth.c
@@ -1063,7 +1063,11 @@ unsigned wc = 0;
 unsigned
 BSP_mve_mii_read(struct mveth_private *mp, unsigned addr)
 {
-	return do_mii_read(mp->phy, addr);
+unsigned rval = do_mii_read(mp->phy, addr);
+#ifdef MVETH_DEBUG
+	printk(DRVNAME": BSP_mve_mii_read(%d): 0x%08x\n", addr, rval);
+#endif
+	return rval;
 }
 
 unsigned
@@ -1096,6 +1100,9 @@ unsigned wc = 0;
 unsigned
 BSP_mve_mii_write(struct mveth_private *mp, unsigned addr, unsigned v)
 {
+#ifdef MVETH_DEBUG
+	printk(DRVNAME": BSP_mve_mii_write(%d): 0x%08x\n", addr, v);
+#endif
 	return do_mii_write( mp->phy, addr, v );
 }
 
@@ -1587,7 +1594,7 @@ int port = mp->port_num;
 uint32_t old, new;
 
 #ifdef MVETH_DEBUG
-	printk(DRVNAME"%i: Entering BSP_mve_update_serial_port()\n");
+	printk(DRVNAME": Entering BSP_mve_update_serial_port()\n");
 #endif
 
 	new = old = MV_READ(MV643XX_ETH_SERIAL_CONTROL_R(port));
-- 
2.26.2



More information about the devel mailing list