summaryrefslogtreecommitdiff
path: root/drivers/net/macvtap.c
diff options
context:
space:
mode:
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>2016-11-29 06:26:32 +0300
committerDavid S. Miller <davem@davemloft.net>2016-11-30 20:40:48 +0300
commit763dfa276c9a280b92543b1862954dba98ef2682 (patch)
tree817aae1c623f68536822fabd45312c190add8421 /drivers/net/macvtap.c
parent492e9d8c189bcf4b7801bf9f04356ce452d8747a (diff)
downloadlinux-763dfa276c9a280b92543b1862954dba98ef2682.tar.xz
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);