net: sun8i-emac: Downgrade printf during probe to debug
authorSamuel Holland <samuel@sholland.org>
Fri, 15 Jul 2022 05:20:56 +0000 (00:20 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 18 Jul 2022 10:25:40 +0000 (11:25 +0100)
This just prints the PHY mode taken from the devicetree. It does not
need to be printed during every boot, and also avoids an unwanted
line break for the "net: " reporting line.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/net/sun8i_emac.c

index 2220f84..a4b3492 100644 (file)
@@ -857,7 +857,7 @@ static int sun8i_emac_eth_of_to_plat(struct udevice *dev)
        priv->phyaddr = fdtdec_get_int(gd->fdt_blob, offset, "reg", -1);
 
        pdata->phy_interface = dev_read_phy_mode(dev);
-       printf("phy interface%d\n", pdata->phy_interface);
+       debug("phy interface %d\n", pdata->phy_interface);
        if (pdata->phy_interface == PHY_INTERFACE_MODE_NA)
                return -EINVAL;