[alsa-devel] [PATCH 3/3] lx6464es: use %*phN to print small buffer in hex form
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Wed May 29 12:03:22 CEST 2013
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);
sprintf(card->shortname, "LX6464ES %pM", chip->mac_address);
--
1.8.2.rc0.22.gb3600c3
More information about the Alsa-devel
mailing list