[U-Boot] [PATCH 01/27] net: new utility functions for working with enetaddr's

Mike Frysinger vapier at gentoo.org
Tue Feb 17 01:00:48 CET 2009


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 


More information about the U-Boot mailing list