lkml.org 
[lkml]   [2012]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/11] xscale/ixp2000/ixpdev: print MAC via printk format specifier
    Date
    Print MAC/dev_addr via printk extended format specifier %pM
    instead of custom code.

    Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
    ---
    drivers/net/ethernet/xscale/ixp2000/ixpdev.c | 7 ++-----
    1 files changed, 2 insertions(+), 5 deletions(-)

    diff --git a/drivers/net/ethernet/xscale/ixp2000/ixpdev.c b/drivers/net/ethernet/xscale/ixp2000/ixpdev.c
    index e122493..4500837 100644
    --- a/drivers/net/ethernet/xscale/ixp2000/ixpdev.c
    +++ b/drivers/net/ethernet/xscale/ixp2000/ixpdev.c
    @@ -398,11 +398,8 @@ int ixpdev_init(int __nds_count, struct net_device **__nds,
    }

    for (i = 0; i < nds_count; i++) {
    - printk(KERN_INFO "%s: IXP2000 MSF ethernet (port %d), "
    - "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x.\n", nds[i]->name, i,
    - nds[i]->dev_addr[0], nds[i]->dev_addr[1],
    - nds[i]->dev_addr[2], nds[i]->dev_addr[3],
    - nds[i]->dev_addr[4], nds[i]->dev_addr[5]);
    + printk(KERN_INFO "%s: IXP2000 MSF ethernet (port %d), %pM.\n",
    + nds[i]->name, i, nds[i]->dev_addr);
    }

    return 0;
    --
    1.7.8.3


    \
     
     \ /
      Last update: 2012-02-24 14:51    [W:0.021 / U:60.056 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site