From 763dfa276c9a280b92543b1862954dba98ef2682 Mon Sep 17 00:00:00 2001 From: Zhang Shengju Date: Tue, 29 Nov 2016 11:26:32 +0800 Subject: [PATCH] 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 --- drivers/net/macvtap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1