From: Andy Shevchenko Date: Sat, 11 Sep 2010 14:17:13 +0000 (+0300) Subject: staging: wlags49_h2: use '%pM' format to print MAC address X-Git-Tag: Ubuntu-5.10.0-12.13~26615^2~3^2~593 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ce3d824031d28fbb9d6110e22f560f0344f639d3;p=mirror_ubuntu-hirsute-kernel.git staging: wlags49_h2: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlags49_h2/wl_util.c b/drivers/staging/wlags49_h2/wl_util.c index ce8ed410a7e3..e510dcb35d97 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[0]); return buffer; } // DbgHwAddr