cirrus/mac89x0: print MAC via printk format specifier
authorDanny Kukawka <danny.kukawka@bisect.de>
Fri, 24 Feb 2012 03:45:54 +0000 (03:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Feb 2012 20:40:59 +0000 (15:40 -0500)
commit66dc92eddf610d6f4572367f42902e62e19db7cb
tree5d56d48daea804b8d8099b913118c4f096b8c255
parentf27fd49962dc0f608e5547fc7ae98a8243570610
cirrus/mac89x0: print MAC via printk format specifier

Print MAC/dev_addr via printk extended format specifier %pM instead
of custom code.

Use memcpy to set the address to dev->dev_addr in set_mac_address,
instead of mxing it up in a for loop with printing a debug msg.

Check also if the given address is valid.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cirrus/mac89x0.c