Michael Chan 7ffc49a6ee [ETH]: Combine format_addr() with print_mac().
print_mac() used many most net drivers and format_addr() used by
net-sysfs.c are very similar and they can be intergrated.

format_addr() is also identically redefined in the qla4xxx iscsi
driver.

Export a new function sysfs_format_mac() to be used by net-sysfs,
qla4xxx and others in the future.  Both print_mac() and
sysfs_format_mac() call _format_mac_addr() to do the formatting.

Changed print_mac() to use unsigned char * to be consistent with
net_device struct's dev_addr.  Added buffer length overrun checking
as suggested by Joe Perches.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 15:00:05 -08:00
..
2007-10-31 15:21:35 +00:00
2007-04-01 10:10:04 -05:00
2008-01-23 11:29:34 -06:00
2008-01-11 18:22:30 -06:00
2008-01-25 09:22:12 -06:00
2007-10-22 21:19:53 +02:00
2008-01-11 18:27:59 -06:00
2007-05-31 17:30:04 -04:00
2008-01-11 18:28:51 -06:00
2008-01-23 13:44:31 -06:00
2007-10-19 11:53:42 -07:00
2007-07-18 11:16:32 -05:00
2007-07-14 19:12:15 -05:00
2008-01-23 11:29:29 -06:00
2007-07-31 10:44:01 -05:00
2007-10-24 08:55:40 +02:00
2007-05-31 17:30:04 -04:00
2006-11-15 16:43:50 -06:00
2007-10-19 23:22:55 +02:00