mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 1/2] net: use dev_* for printing network related stuff
Date: Thu, 24 Feb 2011 16:55:06 +0100	[thread overview]
Message-ID: <1298562907-9870-2-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1298562907-9870-1-git-send-email-s.hauer@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2011-02-24 15:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-24 15:55 assorted patches Sascha Hauer
2011-02-24 15:55 ` Sascha Hauer [this message]
2011-02-24 15:55 ` [PATCH 2/2] ARM i.MX: cleanup boot modes Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1298562907-9870-2-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox