X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_hash.c;h=990a1815f893dcd2c5e040b99cc737903bcbec90;hb=25d5c40f252fb77ed78a7baa5d6e54912ad83941;hp=42cfc28b6b812f898ccea98c0710e8ddff56c675;hpb=ef5baf3486e03004b6d807f731f0d9936504511d;p=dpdk.git diff --git a/app/test/test_hash.c b/app/test/test_hash.c index 42cfc28b6b..990a1815f8 100644 --- a/app/test/test_hash.c +++ b/app/test/test_hash.c @@ -69,23 +69,18 @@ struct flow_key { uint8_t proto; } __rte_packed; -int hash_logtype_test; - /* * Hash function that always returns the same value, to easily test what * happens when a bucket is full. */ -static uint32_t pseudo_hash(__attribute__((unused)) const void *keys, - __attribute__((unused)) uint32_t key_len, - __attribute__((unused)) uint32_t init_val) +static uint32_t pseudo_hash(__rte_unused const void *keys, + __rte_unused uint32_t key_len, + __rte_unused uint32_t init_val) { return 3; } -RTE_INIT(test_hash_init_log) -{ - hash_logtype_test = rte_log_register("test.hash"); -} +RTE_LOG_REGISTER(hash_logtype_test, test.hash, INFO); /* * Print out result of unit test hash operation.