diff options
author | Andy Shevchenko <andy.shevchenko@gmail.com> | 2010-09-11 17:17:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-16 12:26:11 -0700 |
commit | ce3d824031d28fbb9d6110e22f560f0344f639d3 (patch) | |
tree | a8a8bda3b346a46fab630b43e1b179e810fb3fbf /drivers/staging/wlags49_h2 | |
parent | aa4d282cba3b358bab1507895910d872f8fa7baf (diff) | |
download | linux-stable-ce3d824031d28fbb9d6110e22f560f0344f639d3.tar.gz linux-stable-ce3d824031d28fbb9d6110e22f560f0344f639d3.tar.bz2 linux-stable-ce3d824031d28fbb9d6110e22f560f0344f639d3.zip |
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>
Diffstat (limited to 'drivers/staging/wlags49_h2')
-rw-r--r-- | 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 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 |