[alsa-devel] [PATCH 3/3] lx6464es: use %*phN to print small buffer in hex form

Takashi Iwai tiwai at suse.de
Wed May 29 12:16:33 CEST 2013


At Wed, 29 May 2013 13:03:22 +0300,
Andy Shevchenko wrote:
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> ---
>  sound/pci/lx6464es/lx6464es.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c
> index 33eb301..7ad98f8 100644
> --- a/sound/pci/lx6464es/lx6464es.c
> +++ b/sound/pci/lx6464es/lx6464es.c
> @@ -1108,8 +1108,7 @@ static int snd_lx6464es_probe(struct pci_dev *pci,
>  	}
>  
>  	strcpy(card->driver, "LX6464ES");
> -	sprintf(card->id, "LX6464ES_%02X%02X%02X",
> -		chip->mac_address[3], chip->mac_address[4], chip->mac_address[5]);
> +	sprintf(card->id, "LX6464ES_%3phN", chip->mac_address + 3);

The same problem as my previous comment.  The case incompatible.


thanks,

Takashi


More information about the Alsa-devel mailing list