summaryrefslogtreecommitdiffstats
path: root/drivers/net/macvtap.c
diff options
context:
space:
mode:
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>2016-11-29 04:26:32 +0100
committerDavid S. Miller <davem@davemloft.net>2016-11-30 18:40:48 +0100
commit763dfa276c9a280b92543b1862954dba98ef2682 (patch)
tree817aae1c623f68536822fabd45312c190add8421 /drivers/net/macvtap.c
parentMerge branch 'liquidio-VF' (diff)
downloadlinux-763dfa276c9a280b92543b1862954dba98ef2682.tar.xz
linux-763dfa276c9a280b92543b1862954dba98ef2682.zip
macvtap: replace printk with netdev_err
This patch replaces printk() with netdev_err() for macvtap device. Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvtap.c')
-rw-r--r--drivers/net/macvtap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c
index 5da9861ad79c..2513939bf245 100644
--- a/drivers/net/macvtap.c
+++ b/drivers/net/macvtap.c
@@ -437,7 +437,7 @@ static int macvtap_get_minor(struct macvlan_dev *vlan)
if (retval >= 0) {
vlan->minor = retval;
} else if (retval == -ENOSPC) {
- printk(KERN_ERR "too many macvtap devices\n");
+ netdev_err(vlan->dev, "Too many macvtap devices\n");
retval = -EINVAL;
}
mutex_unlock(&minor_lock);