]> git.karo-electronics.de Git - linux-beck.git/commitdiff
DSA: Convert printk calls to netdev_info calls
authorBarry Grussling <barry@grussling.com>
Tue, 8 Jan 2013 16:05:55 +0000 (16:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jan 2013 08:04:34 +0000 (00:04 -0800)
Convert DSA printk calls to netdev_info calls as recommended by
checkpatch.pl.

Signed-off-by: Barry Grussling <barry@grussling.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6060.c
drivers/net/dsa/mv88e6xxx.c

index 8548f8d9f75e176a90b9cda3716b6e7e6200a234..7a54ec04b4181210961f2819c7fca1e260cb7661 100644 (file)
@@ -236,7 +236,7 @@ static void mv88e6060_poll_link(struct dsa_switch *ds)
 
                if (!link) {
                        if (netif_carrier_ok(dev)) {
-                               printk(KERN_INFO "%s: link down\n", dev->name);
+                               netdev_info(dev, "link down\n");
                                netif_carrier_off(dev);
                        }
                        continue;
@@ -247,10 +247,11 @@ static void mv88e6060_poll_link(struct dsa_switch *ds)
                fc = ((port_status & 0xc000) == 0xc000) ? 1 : 0;
 
                if (!netif_carrier_ok(dev)) {
-                       printk(KERN_INFO "%s: link up, %d Mb/s, %s duplex, "
-                                        "flow control %sabled\n", dev->name,
-                                        speed, duplex ? "full" : "half",
-                                        fc ? "en" : "dis");
+                       netdev_info(dev,
+                                   "link up, %d Mb/s, %s duplex, flow control %sabled\n",
+                                   speed,
+                                   duplex ? "full" : "half",
+                                   fc ? "en" : "dis");
                        netif_carrier_on(dev);
                }
        }
index afe7d80001e2b974a4b678bd4e3e32de99bce2d3..3756c74ca4be09efbea0b17bde42c3691e7f9bfa 100644 (file)
@@ -356,7 +356,7 @@ void mv88e6xxx_poll_link(struct dsa_switch *ds)
 
                if (!link) {
                        if (netif_carrier_ok(dev)) {
-                               printk(KERN_INFO "%s: link down\n", dev->name);
+                               netdev_info(dev, "link down\n");
                                netif_carrier_off(dev);
                        }
                        continue;
@@ -380,10 +380,11 @@ void mv88e6xxx_poll_link(struct dsa_switch *ds)
                fc = (port_status & 0x8000) ? 1 : 0;
 
                if (!netif_carrier_ok(dev)) {
-                       printk(KERN_INFO "%s: link up, %d Mb/s, %s duplex, "
-                                        "flow control %sabled\n", dev->name,
-                                        speed, duplex ? "full" : "half",
-                                        fc ? "en" : "dis");
+                       netdev_info(dev,
+                                   "link up, %d Mb/s, %s duplex, flow control %sabled\n",
+                                   speed,
+                                   duplex ? "full" : "half",
+                                   fc ? "en" : "dis");
                        netif_carrier_on(dev);
                }
        }