[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
[pandora-kernel.git] / drivers / net / lguest_net.c
index cab5791..abce2ee 100644 (file)
@@ -235,9 +235,9 @@ static int lguestnet_start_xmit(struct sk_buff *skb, struct net_device *dev)
        struct lguestnet_info *info = netdev_priv(dev);
        /* Extract the destination ethernet address from the packet. */
        const unsigned char *dest = ((struct ethhdr *)skb->data)->h_dest;
+       DECLARE_MAC_BUF(mac);
 
-       pr_debug("%s: xmit %02x:%02x:%02x:%02x:%02x:%02x\n",
-                dev->name, dest[0],dest[1],dest[2],dest[3],dest[4],dest[5]);
+       pr_debug("%s: xmit %s\n", dev->name, print_mac(mac, dest));
 
        /* If it's a multicast packet, we broadcast to everyone.  That's not
         * very efficient, but there are very few applications which actually
@@ -460,8 +460,6 @@ static int lguestnet_probe(struct lguest_device *lgdev)
        if (!dev)
                return -ENOMEM;
 
-       SET_MODULE_OWNER(dev);
-
        /* Ethernet defaults with some changes */
        ether_setup(dev);
        dev->set_mac_address = NULL;