Skip to contentSkip to conversation

net: sun8i_emac: Remove debug message

PATCH New Stefan Mavrodiev 2 participants 2 messages Nov 4, 2019 – Nov 19, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: sun8i_emac: Remove debug message

When booting with sun8i_emac driver, the user get output like this:

...
Net: phy interface7
eth0: ethernet at 1c30000
...

The first line doesn't provide any useful information except for the developers. I guess this is some leftover debugging message. This patch change it to such. The new output is:

...
Net: eth0: ethernet at 1c30000
...

---
 drivers/net/sun8i_emac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/sun8i_emac.c +1 -1
index 0629b16e57..e6cb074bc4 100644
@@ -968,7 +968,7 @@ static int sun8i_emac_eth_ofdata_to_platdata(struct udevice *dev)
 
 	if (phy_mode)
 		pdata->phy_interface = phy_get_interface_by_name(phy_mode);
-	printf("phy interface%d\n", pdata->phy_interface);
+	debug("phy interface%d\n", pdata->phy_interface);
 
 	if (pdata->phy_interface == -1) {
 		debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode);
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 net: sun8i_emac: Remove debug message

Quoted 12 lines · Stefan Mavrodiev

When booting with sun8i_emac driver, the user get output like this:

...
Net: phy interface7
eth0: ethernet at 1c30000
...

The first line doesn't provide any useful information except for the developers. I guess this is some leftover debugging message. This patch change it to such. The new output is:

Quoted 6 lines

...
Net: eth0: ethernet at 1c30000
...

---

Applied to u-boot-sunxi/master