]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: octeon: use '%pM' format to print MAC address
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sat, 11 Sep 2010 14:17:08 +0000 (17:17 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Sep 2010 19:26:13 +0000 (12:26 -0700)
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/octeon/ethernet.c

index e50a17d807072c150f082daf655b3a459fb9b1cf..9537ea4ae09d21805b8dfef6d3d02f00955cb86d 100644 (file)
@@ -465,10 +465,7 @@ int cvm_oct_common_init(struct net_device *dev)
 
        if (cvm_oct_mac_addr_offset >= octeon_bootinfo->mac_addr_count)
                printk(KERN_DEBUG "%s: Using MAC outside of the assigned range:"
-                       " %02x:%02x:%02x:%02x:%02x:%02x\n", dev->name,
-                       sa.sa_data[0] & 0xff, sa.sa_data[1] & 0xff,
-                       sa.sa_data[2] & 0xff, sa.sa_data[3] & 0xff,
-                       sa.sa_data[4] & 0xff, sa.sa_data[5] & 0xff);
+                       " %pM\n", dev->name, &sa.sa_data[0]);
        cvm_oct_mac_addr_offset++;
 
        /*