Skip to contentSkip to conversation

net, davinci_emac: make less verbose - turn printf() into debug()

PATCH New Heiko Schocher 1 participant 1 message Sep 15, 2011 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net, davinci_emac: make less verbose - turn printf() into debug()

The PHY driver was too verbose and corrupted the boot message display like this:

...
Net: Ethernet PHY: KSZ8873 @ 0x02
DaVinci-EMAC
...

Turn printf() into debug() so we get the expected output again:

...
Net: DaVinci-EMAC
...

---
 drivers/net/davinci_emac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/davinci_emac.c +1 -1
index c0b8929..5b8ab2d 100644
@@ -740,7 +740,7 @@ int davinci_emac_initialize(void)
 			phy.auto_negotiate = gen_auto_negotiate;
 	}
 
-	printf("Ethernet PHY: %s\n", phy.name);
+	debug("Ethernet PHY: %s\n", phy.name);
 
 	miiphy_register(phy.name, davinci_mii_phy_read, davinci_mii_phy_write);
 	return(1);
Signature · 1 line
1.7.6