Commit ab381a93 authored by Barry Grussling's avatar Barry Grussling Committed by David S. Miller

DSA: Convert printk calls to netdev_info calls

Convert DSA printk calls to netdev_info calls as recommended by
checkpatch.pl.
Signed-off-by: default avatarBarry Grussling <barry@grussling.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 19b2f97e
...@@ -236,7 +236,7 @@ static void mv88e6060_poll_link(struct dsa_switch *ds) ...@@ -236,7 +236,7 @@ static void mv88e6060_poll_link(struct dsa_switch *ds)
if (!link) { if (!link) {
if (netif_carrier_ok(dev)) { if (netif_carrier_ok(dev)) {
printk(KERN_INFO "%s: link down\n", dev->name); netdev_info(dev, "link down\n");
netif_carrier_off(dev); netif_carrier_off(dev);
} }
continue; continue;
...@@ -247,10 +247,11 @@ static void mv88e6060_poll_link(struct dsa_switch *ds) ...@@ -247,10 +247,11 @@ static void mv88e6060_poll_link(struct dsa_switch *ds)
fc = ((port_status & 0xc000) == 0xc000) ? 1 : 0; fc = ((port_status & 0xc000) == 0xc000) ? 1 : 0;
if (!netif_carrier_ok(dev)) { if (!netif_carrier_ok(dev)) {
printk(KERN_INFO "%s: link up, %d Mb/s, %s duplex, " netdev_info(dev,
"flow control %sabled\n", dev->name, "link up, %d Mb/s, %s duplex, flow control %sabled\n",
speed, duplex ? "full" : "half", speed,
fc ? "en" : "dis"); duplex ? "full" : "half",
fc ? "en" : "dis");
netif_carrier_on(dev); netif_carrier_on(dev);
} }
} }
......
...@@ -356,7 +356,7 @@ void mv88e6xxx_poll_link(struct dsa_switch *ds) ...@@ -356,7 +356,7 @@ void mv88e6xxx_poll_link(struct dsa_switch *ds)
if (!link) { if (!link) {
if (netif_carrier_ok(dev)) { if (netif_carrier_ok(dev)) {
printk(KERN_INFO "%s: link down\n", dev->name); netdev_info(dev, "link down\n");
netif_carrier_off(dev); netif_carrier_off(dev);
} }
continue; continue;
...@@ -380,10 +380,11 @@ void mv88e6xxx_poll_link(struct dsa_switch *ds) ...@@ -380,10 +380,11 @@ void mv88e6xxx_poll_link(struct dsa_switch *ds)
fc = (port_status & 0x8000) ? 1 : 0; fc = (port_status & 0x8000) ? 1 : 0;
if (!netif_carrier_ok(dev)) { if (!netif_carrier_ok(dev)) {
printk(KERN_INFO "%s: link up, %d Mb/s, %s duplex, " netdev_info(dev,
"flow control %sabled\n", dev->name, "link up, %d Mb/s, %s duplex, flow control %sabled\n",
speed, duplex ? "full" : "half", speed,
fc ? "en" : "dis"); duplex ? "full" : "half",
fc ? "en" : "dis");
netif_carrier_on(dev); netif_carrier_on(dev);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment