ring: move log
authorIntel <intel.com>
Fri, 8 Nov 2013 02:00:00 +0000 (03:00 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 24 Nov 2013 00:31:33 +0000 (01:31 +0100)
Signed-off-by: Intel
lib/librte_pmd_ring/rte_eth_ring.c

index d9667c0..9514aab 100644 (file)
@@ -220,15 +220,15 @@ rte_eth_from_rings(struct rte_ring *const rx_queues[],
        struct rte_eth_dev *eth_dev = NULL;
        unsigned i;
 
-       RTE_LOG(INFO, PMD, "Creating rings-backed ethdev on numa socket %u\n",
-                       numa_node);
-
        /* do some paramter checking */
        if (rx_queues == NULL && nb_rx_queues > 0)
                goto error;
        if (tx_queues == NULL && nb_tx_queues > 0)
                goto error;
 
+       RTE_LOG(INFO, PMD, "Creating rings-backed ethdev on numa socket %u\n",
+                       numa_node);
+
        /* now do all data allocation - for eth_dev structure, dummy pci driver
         * and internal (private) data
         */