projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa4d282
)
staging: wlags49_h2: use '%pM' format to print MAC address
author
Andy Shevchenko
<andy.shevchenko@gmail.com>
Sat, 11 Sep 2010 14:17:13 +0000
(17:17 +0300)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/wlags49_h2/wl_util.c
b/drivers/staging/wlags49_h2/wl_util.c
index ce8ed410a7e3507640663af4dea13873057ae9b4..e510dcb35d97173e85d19176147ee8c193226be8 100644
(file)
--- 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