diff options
author | Zhang Shengju <zhangshengju@cmss.chinamobile.com> | 2016-11-29 04:26:32 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-30 18:40:48 +0100 |
commit | 763dfa276c9a280b92543b1862954dba98ef2682 (patch) | |
tree | 817aae1c623f68536822fabd45312c190add8421 /drivers/net/macvtap.c | |
parent | Merge branch 'liquidio-VF' (diff) | |
download | linux-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.c | 2 |
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); |