summaryrefslogtreecommitdiffstats
path: root/drivers/staging/most/aim-network
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-09-15 14:28:18 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-16 21:32:45 -0700
commitefc0cfa1341b9718b8bf295641e2bf909fe215ba (patch)
treea1cd9416875f0c81a913adcc3dde319fcd68a6dc /drivers/staging/most/aim-network
parent2877f245cf13d4cc6be4dab149d3d2f239ce8cd6 (diff)
downloadlinux-efc0cfa1341b9718b8bf295641e2bf909fe215ba.tar.bz2
Staging: most: aim-network: Replace pr_info with netdev_info
Use netdev_* family of macros when there is reference to a network device. dev->name is removed as netdev_info will print the device name Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/aim-network')
-rw-r--r--drivers/staging/most/aim-network/networking.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/most/aim-network/networking.c b/drivers/staging/most/aim-network/networking.c
index a1e1bce16296..cbda189eba2f 100644
--- a/drivers/staging/most/aim-network/networking.c
+++ b/drivers/staging/most/aim-network/networking.c
@@ -186,7 +186,7 @@ static int most_nd_open(struct net_device *dev)
{
struct net_dev_context *nd = dev->ml_priv;
- pr_info("open net device %s\n", dev->name);
+ netdev_info(dev, "open net device\n");
BUG_ON(nd->dev != dev);
@@ -196,12 +196,12 @@ static int most_nd_open(struct net_device *dev)
BUG_ON(!nd->tx.linked || !nd->rx.linked);
if (most_start_channel(nd->iface, nd->rx.ch_id)) {
- pr_err("most_start_channel() failed\n");
+ netdev_err(dev, "most_start_channel() failed\n");
return -EBUSY;
}
if (most_start_channel(nd->iface, nd->tx.ch_id)) {
- pr_err("most_start_channel() failed\n");
+ netdev_err(dev, "most_start_channel() failed\n");
most_stop_channel(nd->iface, nd->rx.ch_id);
return -EBUSY;
}
@@ -222,7 +222,7 @@ static int most_nd_stop(struct net_device *dev)
{
struct net_dev_context *nd = dev->ml_priv;
- pr_info("stop net device %s\n", dev->name);
+ netdev_info(dev, "stop net device\n");
BUG_ON(nd->dev != dev);
netif_stop_queue(dev);
@@ -281,7 +281,7 @@ static const struct net_device_ops most_nd_ops = {
static void most_nd_setup(struct net_device *dev)
{
- pr_info("setup net device %s\n", dev->name);
+ netdev_info(dev, "setup net device\n");
ether_setup(dev);
dev->netdev_ops = &most_nd_ops;
}