Commit 763dfa27 authored by Zhang Shengju's avatar Zhang Shengju Committed by David S. Miller

macvtap: replace printk with netdev_err

This patch replaces printk() with netdev_err() for macvtap device.
Signed-off-by: default avatarZhang Shengju <zhangshengju@cmss.chinamobile.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 492e9d8c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment