]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_debug.c
app: use common macro RTE_DIM
[dpdk.git] / app / test / test_debug.c
index faf2cf5573b980ddc1e6e1360639d7a7489a3ad8..25eab97e2a430089940c8e29be95286b147a629c 100644 (file)
@@ -81,7 +81,7 @@ test_exit(void)
 {
        int test_vals[] = { 0, 1, 2, 255, -1 };
        unsigned i;
 {
        int test_vals[] = { 0, 1, 2, 255, -1 };
        unsigned i;
-       for (i = 0; i < sizeof(test_vals) / sizeof(test_vals[0]); i++){
+       for (i = 0; i < RTE_DIM(test_vals); i++) {
                if (test_exit_val(test_vals[i]) < 0)
                        return -1;
        }
                if (test_exit_val(test_vals[i]) < 0)
                        return -1;
        }