]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: wlags49_h2: use '%pM' format to print MAC address
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sat, 11 Sep 2010 14:17:13 +0000 (17:17 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Sep 2010 19:26:11 +0000 (12:26 -0700)
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/wlags49_h2/wl_util.c

index ce8ed410a7e3507640663af4dea13873057ae9b4..e510dcb35d97173e85d19176147ee8c193226be8 100644 (file)
@@ -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