projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
492e9d8
)
macvtap: replace printk with netdev_err
author
Zhang Shengju
<zhangshengju@cmss.chinamobile.com>
Tue, 29 Nov 2016 03:26:32 +0000
(11:26 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 30 Nov 2016 17:40:48 +0000
(12:40 -0500)
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>
drivers/net/macvtap.c
patch
|
blob
|
history
diff --git
a/drivers/net/macvtap.c
b/drivers/net/macvtap.c
index 5da9861ad79cd0857511d7927f6408740cbd56bd..2513939bf2458d3bbf4f4efb91619c6cedd9207c 100644
(file)
--- 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 "t
oo many macvtap devices\n");
+
netdev_err(vlan->dev, "T
oo many macvtap devices\n");
retval = -EINVAL;
}
mutex_unlock(&minor_lock);