Commit 204a6e65 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

vmxnet3: use netdev_ printk wrappers

Use the standard netdev_xxx() and dev_xxx() wrappers to format
log messages.
Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fdcd79b9
This diff is collapsed.
...@@ -522,24 +522,23 @@ vmxnet3_set_ringparam(struct net_device *netdev, ...@@ -522,24 +522,23 @@ vmxnet3_set_ringparam(struct net_device *netdev,
if (err) { if (err) {
/* failed, most likely because of OOM, try default /* failed, most likely because of OOM, try default
* size */ * size */
printk(KERN_ERR "%s: failed to apply new sizes, try the" netdev_err(netdev, "failed to apply new sizes, "
" default ones\n", netdev->name); "try the default ones\n");
err = vmxnet3_create_queues(adapter, err = vmxnet3_create_queues(adapter,
VMXNET3_DEF_TX_RING_SIZE, VMXNET3_DEF_TX_RING_SIZE,
VMXNET3_DEF_RX_RING_SIZE, VMXNET3_DEF_RX_RING_SIZE,
VMXNET3_DEF_RX_RING_SIZE); VMXNET3_DEF_RX_RING_SIZE);
if (err) { if (err) {
printk(KERN_ERR "%s: failed to create queues " netdev_err(netdev, "failed to create queues "
"with default sizes. Closing it\n", "with default sizes. Closing it\n");
netdev->name);
goto out; goto out;
} }
} }
err = vmxnet3_activate_dev(adapter); err = vmxnet3_activate_dev(adapter);
if (err) if (err)
printk(KERN_ERR "%s: failed to re-activate, error %d." netdev_err(netdev, "failed to re-activate, error %d."
" Closing it\n", netdev->name, err); " Closing it\n", err);
} }
out: out:
......
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