Skip to content

Commit

Permalink
staging: wlags49_h2: use '%pM' format to print MAC address
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Andy Shevchenko authored and Greg Kroah-Hartman committed Sep 16, 2010
1 parent aa4d282 commit ce3d824
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/wlags49_h2/wl_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[0]);

return buffer;
} // DbgHwAddr
Expand Down

0 comments on commit ce3d824

Please sign in to comment.