[PATCH 1/2] net: use dev_* for printing network related stuff
Sascha Hauer
s.hauer at pengutronix.de
Thu Feb 24 10:55:06 EST 2011
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
net/eth.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/eth.c b/net/eth.c
index 9eae17c..0251e59 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -146,7 +146,7 @@ int eth_register(struct eth_device *edev)
unsigned char ethaddr[6];
if (!edev->get_ethaddr) {
- printf("no get_mac_address found for current eth device\n");
+ dev_err(dev, "no get_mac_address found for current eth device\n");
return -1;
}
@@ -167,7 +167,7 @@ int eth_register(struct eth_device *edev)
if (edev->get_ethaddr(edev, ethaddr) == 0) {
ethaddr_to_string(ethaddr, ethaddr_str);
- printf("got MAC address from EEPROM: %s\n", ethaddr_str);
+ dev_info(dev, "got MAC address from EEPROM: %s\n", ethaddr_str);
dev_set_param(dev, "ethaddr", ethaddr_str);
}
--
1.7.2.3
More information about the barebox
mailing list