]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
atm: lanai: use kernel's '%pM' format option to print MAC
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Thu, 2 Dec 2010 02:45:08 +0000 (02:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Dec 2010 16:53:41 +0000 (08:53 -0800)
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Chas Williams <chas@cmf.nrl.navy.mil>
Cc: linux-atm-general@lists.sourceforge.net
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/lanai.c

index cbe15a86c6698b2044b45469fa57f8d199aca15e..930051d941a7817a65b75ca7cc7fe72f9e045d00 100644 (file)
@@ -2241,11 +2241,8 @@ static int __devinit lanai_dev_open(struct atm_dev *atmdev)
        memcpy(atmdev->esi, eeprom_mac(lanai), ESI_LEN);
        lanai_timed_poll_start(lanai);
        printk(KERN_NOTICE DEV_LABEL "(itf %d): rev.%d, base=0x%lx, irq=%u "
-           "(%02X-%02X-%02X-%02X-%02X-%02X)\n", lanai->number,
-           (int) lanai->pci->revision, (unsigned long) lanai->base,
-           lanai->pci->irq,
-           atmdev->esi[0], atmdev->esi[1], atmdev->esi[2],
-           atmdev->esi[3], atmdev->esi[4], atmdev->esi[5]);
+               "(%pMF)\n", lanai->number, (int) lanai->pci->revision,
+               (unsigned long) lanai->base, lanai->pci->irq, atmdev->esi);
        printk(KERN_NOTICE DEV_LABEL "(itf %d): LANAI%s, serialno=%u(0x%X), "
            "board_rev=%d\n", lanai->number,
            lanai->type==lanai2 ? "2" : "HB", (unsigned int) lanai->serialno,