summaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netfront.c
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2014-07-31 18:38:24 +0200
committerDavid S. Miller <davem@davemloft.net>2014-08-01 07:23:52 +0200
commit69cb85242f4ff1cbbac5a45c05223600084760e8 (patch)
tree3c5b9020cf35f9bac5d7ffd185ca7cdf86e375e4 /drivers/net/xen-netfront.c
parentxen-netfront: release per-queue Tx and Rx resource when disconnecting (diff)
downloadlinux-69cb85242f4ff1cbbac5a45c05223600084760e8.tar.xz
linux-69cb85242f4ff1cbbac5a45c05223600084760e8.zip
xen-netfront: print correct number of queues
When less than the requested number of queues could be created, include the actual number in the warning (instead of the requested number). Signed-off-by: David Vrabel <david.vrabel@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r--drivers/net/xen-netfront.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index 0b133a3d4312..28204bc4f369 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -1815,8 +1815,8 @@ static int xennet_create_queues(struct netfront_info *info,
ret = xennet_init_queue(queue);
if (ret < 0) {
- dev_warn(&info->netdev->dev, "only created %d queues\n",
- num_queues);
+ dev_warn(&info->netdev->dev,
+ "only created %d queues\n", i);
num_queues = i;
break;
}