[U-Boot] [PATCH] phy.c: make less verbose - turn printf() into debug()
Kumar Gala
galak at kernel.crashing.org
Wed Jul 27 15:22:38 CEST 2011
On Jul 25, 2011, at 2:39 AM, Wolfgang Denk wrote:
> The PHY driver was too verbose and corrupted the boot message display
> like this:
>
> ...
> Net: TSEC0 connected to Marvell 88E1111S
> TSEC1 connected to Marvell 88E1111S
> TSEC0, TSEC1
> ...
>
> Turn printf() into debug() so we het the expected output again:
>
> ...
> Net: TSEC0, TSEC1
> ...
>
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> Cc: Kumar Gala <galak at kernel.crashing.org>
>
> ---
> drivers/net/phy/phy.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
> index c7edcc0..ce69c19 100644
> --- a/drivers/net/phy/phy.c
> +++ b/drivers/net/phy/phy.c
> @@ -714,7 +714,7 @@ struct phy_device *phy_connect(struct mii_dev *bus, int addr,
>
> phydev->dev = dev;
>
> - printf("%s connected to %s\n", dev->name, phydev->drv->name);
> + debug("%s connected to %s\n", dev->name, phydev->drv->name);
>
> return phydev;
> }
> --
> 1.7.6
Andy,
Any comments?
- k
More information about the U-Boot
mailing list