From: David Vrabel Date: Thu, 31 Jul 2014 16:38:24 +0000 (+0100) Subject: xen-netfront: print correct number of queues X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=69cb85242f4ff1cbbac5a45c05223600084760e8;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: David S. Miller --- 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; }