lkml.org 
[lkml]   [2010]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/2] dvb: mantis: use '%pM' format to print MAC address
From
Date
On Sat, 2010-09-11 at 16:59 +0300, Andy Shevchenko wrote:
> drivers/media/dvb/mantis/mantis_core.c | 5 +----
> drivers/media/dvb/mantis/mantis_ioc.c | 9 +--------

Hi Andy.

I think these are clearer and more commonly used as:

> dprintk(verbose, MANTIS_ERROR, 0,
> + " MAC Address=[%pM]\n", &mantis->mac_address[0]);

" MAC Address=[%pM]\n", mantis->mac_address);

and

> + dprintk(MANTIS_ERROR, 0, " MAC Address=[%pM]\n", &mac_addr[0]);

dprintk(MANTIS_ERROR, 0, " MAC Address=[%pM]\n", mac_addr);




\
 
 \ /
  Last update: 2010-09-11 18:49    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog