]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_latencystats.c
net/sfc: support API to negotiate delivery of Rx metadata
[dpdk.git] / app / test / test_latencystats.c
index 427339904de766d97e349cdae0a02e26c21c61e4..724acbc31556c4bb5e72ebde71fe35c7714d7601 100644 (file)
@@ -80,7 +80,7 @@ static int test_latencystats_get_names(void)
        /* Success Test: Valid names and size */
        size = NUM_STATS;
        ret = rte_latencystats_get_names(names, size);
-       for (i = 0; i <= NUM_STATS; i++) {
+       for (i = 0; i < NUM_STATS; i++) {
                if (strcmp(lat_stats_strings[i].name, names[i].name) == 0)
                        printf(" %s\n", names[i].name);
                else