]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] dvb: mantis: use '%pM' format to print MAC address
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sat, 11 Sep 2010 17:33:27 +0000 (14:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 09:55:57 +0000 (07:55 -0200)
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/mantis/mantis_core.c
drivers/media/dvb/mantis/mantis_ioc.c

index 8113b23ce448c8261e1bf87157972c9e9754adca..22524a8e6f61ec735773bab8d8a7f610b7319ec1 100644 (file)
@@ -91,10 +91,7 @@ static int get_mac_address(struct mantis_pci *mantis)
                return err;
        }
        dprintk(verbose, MANTIS_ERROR, 0,
-               "    MAC Address=[%02x:%02x:%02x:%02x:%02x:%02x]\n",
-               mantis->mac_address[0], mantis->mac_address[1],
-               mantis->mac_address[2], mantis->mac_address[3],
-               mantis->mac_address[4], mantis->mac_address[5]);
+               "    MAC Address=[%pM]\n", mantis->mac_address);
 
        return 0;
 }
index de148ded52d8aab4b02879b795cb09f655329e91..fe31cfb0b1580dbe6fb3255287983752f980bed0 100644 (file)
@@ -68,14 +68,7 @@ int mantis_get_mac(struct mantis_pci *mantis)
                return err;
        }
 
-       dprintk(MANTIS_ERROR, 0,
-               "    MAC Address=[%02x:%02x:%02x:%02x:%02x:%02x]\n",
-               mac_addr[0],
-               mac_addr[1],
-               mac_addr[2],
-               mac_addr[3],
-               mac_addr[4],
-               mac_addr[5]);
+       dprintk(MANTIS_ERROR, 0, "    MAC Address=[%pM]\n", mac_addr);
 
        return 0;
 }