mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 05:24:12 +08:00
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>
This commit is contained in:
parent
a5b5dc3ce4
commit
69cb85242f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user