summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2014-07-31 16:38:24 (GMT)
committerDavid S. Miller <davem@davemloft.net>2014-08-01 05:23:52 (GMT)
commit69cb85242f4ff1cbbac5a45c05223600084760e8 (patch)
tree3c5b9020cf35f9bac5d7ffd185ca7cdf86e375e4 /drivers
parenta5b5dc3ce4df4f05f4d81c7d3c56a7604b242093 (diff)
downloadlinux-69cb85242f4ff1cbbac5a45c05223600084760e8.tar.xz
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')
-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 0b133a3..28204bc 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;
}