xen-netfront: print correct number of queues
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 31 Jul 2014 16:38:24 +0000 (17:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Aug 2014 05:23:52 +0000 (22:23 -0700)
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>
drivers/net/xen-netfront.c

index 0b133a3d43123d0b92b06741a9817f87190cc8f7..28204bc4f369550bc816a81fcf6b933d71e52af4 100644 (file)
@@ -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;
                }