From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Mon, 16 Feb 2009 19:00:48 -0500 Subject: [U-Boot] [PATCH 01/27] net: new utility functions for working with enetaddr's In-Reply-To: <20090216222824.0D25F832E893@gemini.denx.de> References: <1234596190-524-1-git-send-email-vapier@gentoo.org> <1234596190-524-2-git-send-email-vapier@gentoo.org> <20090216222824.0D25F832E893@gemini.denx.de> Message-ID: <200902161900.49096.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday 16 February 2009 17:28:24 Wolfgang Denk wrote: > In message Mike Frysinger wrote: > > + printf ("Address in SROM is %s\n", > > + str_enetaddr(enetvar, dev->enetaddr)); > > + printf ("Address in environment is %s\n", > > + str_enetaddr(enetvar, env_enetaddr)); > > Hm... Linux has a printk() format specifier for MAC addresses. Sounds > like a clever idea to me. Maybe we should borrow that code? it does eh ? that certainly sounds a lot better than str_enetaddr() as every place i changed to use it was in a printf() string. where in the kernel is that code ? i looked in lib/vsprintf.c but couldnt find it. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20090216/684ef220/attachment.pgp