lkml.org 
[lkml]   [2007]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 04/11] drivers/net/mac89x0.c: Use print_mac
    Date

    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    drivers/net/mac89x0.c | 7 ++++---
    1 files changed, 4 insertions(+), 3 deletions(-)

    diff --git a/drivers/net/mac89x0.c b/drivers/net/mac89x0.c
    index a19b595..45b56ca 100644
    --- a/drivers/net/mac89x0.c
    +++ b/drivers/net/mac89x0.c
    @@ -584,11 +584,12 @@ static void set_multicast_list(struct net_device *dev)

    static int set_mac_address(struct net_device *dev, void *addr)
    {
    + DECLARE_MAC_BUF(mac);
    int i;
    - printk("%s: Setting MAC address to ", dev->name);
    for (i = 0; i < 6; i++)
    - printk(" %2.2x", dev->dev_addr[i] = ((unsigned char *)addr)[i]);
    - printk(".\n");
    + dev->dev_addr[i] = ((unsigned char *)addr)[i];
    + printk(KERN_INFO "%s: Setting MAC address to %s\n",
    + dev->name, print_mac(mac, dev->dev_addr));
    /* set the Ethernet address */
    for (i=0; i < ETH_ALEN/2; i++)
    writereg(dev, PP_IA+i*2, dev->dev_addr[i*2] | (dev->dev_addr[i*2+1] << 8));
    --
    1.5.3.7.949.g2221a6


    \
     
     \ /
      Last update: 2007-12-14 23:41    [W:6.703 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site