From: Zhang Shengju Date: Tue, 29 Nov 2016 03:26:32 +0000 (+0800) Subject: macvtap: replace printk with netdev_err X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=763dfa276c9a280b92543b1862954dba98ef2682;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git macvtap: replace printk with netdev_err This patch replaces printk() with netdev_err() for macvtap device. Signed-off-by: Zhang Shengju Acked-by: Jason Wang Signed-off-by: David S. Miller --- 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);