aboutsummaryrefslogtreecommitdiff
path: root/example/l3fwd/odp_l3fwd_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/l3fwd/odp_l3fwd_db.c')
-rw-r--r--example/l3fwd/odp_l3fwd_db.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/example/l3fwd/odp_l3fwd_db.c b/example/l3fwd/odp_l3fwd_db.c
index a27801a5a..a4e4681f6 100644
--- a/example/l3fwd/odp_l3fwd_db.c
+++ b/example/l3fwd/odp_l3fwd_db.c
@@ -11,8 +11,9 @@
#include <stdlib.h>
#include <string.h>
-#include <example_debug.h>
#include <odp_api.h>
+#include <odp/helper/odph_api.h>
+
#include <odp_l3fwd_db.h>
/** Jenkins hash support.
@@ -203,13 +204,13 @@ static void create_fwd_hash_cache(void)
hash_shm = odp_shm_reserve("flow_table", size,
ODP_CACHE_LINE_SIZE, 0);
if (hash_shm == ODP_SHM_INVALID) {
- EXAMPLE_ERR("Error: shared mem reserve failed.\n");
+ ODPH_ERR("Error: shared mem reserve failed.\n");
exit(EXIT_FAILURE);
}
bucket = odp_shm_addr(hash_shm);
if (!bucket) {
- EXAMPLE_ERR("Error: shared mem alloc failed.\n");
+ ODPH_ERR("Error: shared mem alloc failed.\n");
exit(-1);
}
}
@@ -349,14 +350,14 @@ void init_fwd_db(void)
0);
if (shm == ODP_SHM_INVALID) {
- EXAMPLE_ERR("Error: shared mem reserve failed.\n");
+ ODPH_ERR("Error: shared mem reserve failed.\n");
exit(EXIT_FAILURE);
}
fwd_db = odp_shm_addr(shm);
if (fwd_db == NULL) {
- EXAMPLE_ERR("Error: shared mem alloc failed.\n");
+ ODPH_ERR("Error: shared mem alloc failed.\n");
exit(EXIT_FAILURE);
}
memset(fwd_db, 0, sizeof(*fwd_db));