lkml.org 
[lkml]   [2010]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCHv2 10/10] staging: wlags49_h2: use '%pM' format to print MAC address
    Date
    Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    ---
    drivers/staging/wlags49_h2/wl_util.c | 4 +---
    1 files changed, 1 insertions(+), 3 deletions(-)

    diff --git a/drivers/staging/wlags49_h2/wl_util.c b/drivers/staging/wlags49_h2/wl_util.c
    index ce8ed41..4521c9f 100644
    --- a/drivers/staging/wlags49_h2/wl_util.c
    +++ b/drivers/staging/wlags49_h2/wl_util.c
    @@ -338,9 +338,7 @@ const char *DbgHwAddr(unsigned char *hwAddr)
    static char buffer[18];
    /*------------------------------------------------------------------------*/

    -
    - sprintf( buffer, "%02X:%02X:%02X:%02X:%02X:%02X",
    - hwAddr[0], hwAddr[1], hwAddr[2], hwAddr[3], hwAddr[4], hwAddr[5] );
    + sprintf(buffer, "%pM", hwAddr);

    return buffer;
    } // DbgHwAddr
    --
    1.7.2.2


    \
     
     \ /
      Last update: 2010-09-13 10:45    [W:0.039 / U:0.040 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site