X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fl2fwd-ivshmem%2Fhost%2Fhost.c;fp=examples%2Fl2fwd-ivshmem%2Fhost%2Fhost.c;h=02e65b979e089d50140e3e947eb0b3ae5f7e5048;hb=6f41fe75e2dd8dd38f7bea7b9501edd4f9b72fa5;hp=712f1ea511188af5f8ddf50ce82e97c54004ef25;hpb=e8ed6c78177fbbafa326d9efc590a51705848200;p=dpdk.git diff --git a/examples/l2fwd-ivshmem/host/host.c b/examples/l2fwd-ivshmem/host/host.c index 712f1ea511..02e65b979e 100644 --- a/examples/l2fwd-ivshmem/host/host.c +++ b/examples/l2fwd-ivshmem/host/host.c @@ -217,7 +217,7 @@ print_to_file(const char *cmdline, const char *config_name) FILE *file; char path[PATH_MAX]; - rte_snprintf(path, sizeof(path), QEMU_CMD_FMT, config_name); + snprintf(path, sizeof(path), QEMU_CMD_FMT, config_name); file = fopen(path, "w"); if (file == NULL) { RTE_LOG(ERR, L2FWD_IVSHMEM, "Could not open '%s' \n", path); @@ -871,7 +871,7 @@ int main(int argc, char **argv) for (portid = 0; portid < nb_ports_available; portid++) { /* RX ring. SP/SC because it's only used by host and a single VM */ - rte_snprintf(name, sizeof(name), "%s%i", RX_RING_PREFIX, portid); + snprintf(name, sizeof(name), "%s%i", RX_RING_PREFIX, portid); r = rte_ring_create(name, NB_MBUF, SOCKET_ID_ANY, RING_F_SP_ENQ | RING_F_SC_DEQ); if (r == NULL) @@ -880,7 +880,7 @@ int main(int argc, char **argv) ctrl->vm_ports[portid].rx_ring = r; /* TX ring. SP/SC because it's only used by host and a single VM */ - rte_snprintf(name, sizeof(name), "%s%i", TX_RING_PREFIX, portid); + snprintf(name, sizeof(name), "%s%i", TX_RING_PREFIX, portid); r = rte_ring_create(name, NB_MBUF, SOCKET_ID_ANY, RING_F_SP_ENQ | RING_F_SC_DEQ); if (r == NULL)