aboutsummaryrefslogtreecommitdiff
path: root/test/validation/api/queue
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2023-08-08 11:02:27 +0300
committerGitHub <noreply@github.com>2023-08-08 11:02:27 +0300
commitde97121a2e3afa072f7c51a0570f4b3bed0236c2 (patch)
tree1f34d2767951f54d11f0b9c8d48b0db04490d2c1 /test/validation/api/queue
parent2b359fc1759726826cf4e2afddbd0b7e39fab4c7 (diff)
parent1200684b94bf18ae98ba63fb49e9cda546b4832a (diff)
Merge ODP v1.41.1.0v1.41.1.0_DPDK_22.11
Merge ODP linux-generic v1.41.1.0 into linux-dpdk.
Diffstat (limited to 'test/validation/api/queue')
-rw-r--r--test/validation/api/queue/queue.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/validation/api/queue/queue.c b/test/validation/api/queue/queue.c
index f661da075..2cd474455 100644
--- a/test/validation/api/queue/queue.c
+++ b/test/validation/api/queue/queue.c
@@ -6,6 +6,7 @@
*/
#include <odp_api.h>
+#include <odp/helper/odph_api.h>
#include <odp_cunit_common.h>
#define MAX_WORKERS 32
@@ -65,7 +66,7 @@ static int queue_suite_init(void)
ODP_CACHE_LINE_SIZE, 0);
if (shm == ODP_SHM_INVALID) {
- printf("Shared memory reserve failed\n");
+ ODPH_ERR("Shared memory reserve failed\n");
return -1;
}
@@ -91,7 +92,7 @@ static int queue_suite_init(void)
pool = odp_pool_create("msg_pool", &params);
if (ODP_POOL_INVALID == pool) {
- printf("Pool create failed.\n");
+ ODPH_ERR("Pool create failed\n");
return -1;
}
return 0;
@@ -103,17 +104,17 @@ static int queue_suite_term(void)
shm = odp_shm_lookup(GLOBALS_NAME);
if (shm == ODP_SHM_INVALID) {
- printf("SHM lookup failed.\n");
+ ODPH_ERR("SHM lookup failed\n");
return -1;
}
if (odp_shm_free(shm)) {
- printf("SHM free failed.\n");
+ ODPH_ERR("SHM free failed\n");
return -1;
}
if (odp_pool_destroy(pool)) {
- printf("Pool destroy failed.\n");
+ ODPH_ERR("Pool destroy failed\n");
return -1;
}
@@ -455,7 +456,7 @@ static int queue_pair_work_loop(void *arg)
buf = odp_buffer_from_event(ev);
data = odp_buffer_addr(buf);
if (*data != i) {
- printf("Seq error: expected %u, recv %u\n", i, *data);
+ ODPH_ERR("Seq error: expected %u, recv %u\n", i, *data);
CU_FAIL("Sequence number error");
}