From ce3d824031d28fbb9d6110e22f560f0344f639d3 Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Sat, 11 Sep 2010 17:17:13 +0300 Subject: [PATCH] staging: wlags49_h2: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wlags49_h2/wl_util.c | 4 +--- 1 file changed, 1 insertion(+), 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 -- 2.39.5