[U-Boot] [PATCH 1/1] net: sun8i_emac: Remove debug message

Stefan Mavrodiev stefan at olimex.com
Mon Nov 4 09:43:14 UTC 2019


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
  ...

Signed-off-by: Stefan Mavrodiev <stefan at olimex.com>
---
 drivers/net/sun8i_emac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c
index 0629b16e57..e6cb074bc4 100644
--- a/drivers/net/sun8i_emac.c
+++ b/drivers/net/sun8i_emac.c
@@ -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);
-- 
2.17.1



More information about the U-Boot mailing list