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>
This commit is contained in:
parent
492e9d8c18
commit
763dfa276c
|
@ -437,7 +437,7 @@ static int macvtap_get_minor(struct macvlan_dev *vlan)
|
||||||
if (retval >= 0) {
|
if (retval >= 0) {
|
||||||
vlan->minor = retval;
|
vlan->minor = retval;
|
||||||
} else if (retval == -ENOSPC) {
|
} else if (retval == -ENOSPC) {
|
||||||
printk(KERN_ERR "too many macvtap devices\n");
|
netdev_err(vlan->dev, "Too many macvtap devices\n");
|
||||||
retval = -EINVAL;
|
retval = -EINVAL;
|
||||||
}
|
}
|
||||||
mutex_unlock(&minor_lock);
|
mutex_unlock(&minor_lock);
|
||||||
|
|
Loading…
Reference in New Issue