i40e/base: enhance adminq init and ASQ send
[dpdk.git] / examples / multi_process / simple_mp / mp_commands.c
index c64ebdd..8da244b 100644 (file)
@@ -43,7 +43,6 @@
 #include <rte_common.h>
 #include <rte_memory.h>
 #include <rte_memzone.h>
-#include <rte_tailq.h>
 #include <rte_eal.h>
 #include <rte_atomic.h>
 #include <rte_branch_prediction.h>
@@ -79,7 +78,7 @@ static void cmd_send_parsed(void *parsed_result,
 
        if (rte_mempool_get(message_pool, &msg) < 0)
                rte_panic("Failed to get message buffer\n");
-       rte_snprintf((char *)msg, string_size, "%s", res->message);
+       snprintf((char *)msg, string_size, "%s", res->message);
        if (rte_ring_enqueue(send_ring, msg) < 0) {
                printf("Failed to send message - message discarded\n");
                rte_mempool_put(message_pool, msg);