staging: wlags49_h2: use '%pM' format to print MAC address
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
aa4d282cba
commit
ce3d824031
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user