diff options
author | Matias Elo <matias.elo@nokia.com> | 2021-11-22 14:16:53 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2021-11-24 08:31:29 +0200 |
commit | 76e3fb52996ff436a260b7882ee54fc67ed4e1c9 (patch) | |
tree | 3b55f04dd846d84774a9e09af6f81313a37dde59 | |
parent | 52c2e288fa2f3dc2907fe3a3b246b5eef32e53f3 (diff) |
Port b744475aa "linux-gen: fix print format build errors"
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
-rw-r--r-- | platform/linux-dpdk/odp_queue_basic.c | 2 | ||||
-rw-r--r-- | platform/linux-dpdk/odp_queue_eventdev.c | 2 | ||||
-rw-r--r-- | platform/linux-dpdk/odp_timer.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/platform/linux-dpdk/odp_queue_basic.c b/platform/linux-dpdk/odp_queue_basic.c index 33e0ba6bc..e3c3241c4 100644 --- a/platform/linux-dpdk/odp_queue_basic.c +++ b/platform/linux-dpdk/odp_queue_basic.c @@ -658,7 +658,7 @@ static void queue_print(odp_queue_t handle) } ODP_PRINT("\nQueue info\n"); ODP_PRINT("----------\n"); - ODP_PRINT(" handle %p\n", queue->s.handle); + ODP_PRINT(" handle %p\n", (void *)queue->s.handle); ODP_PRINT(" index %" PRIu32 "\n", queue_id); ODP_PRINT(" name %s\n", queue->s.name); ODP_PRINT(" enq mode %s\n", diff --git a/platform/linux-dpdk/odp_queue_eventdev.c b/platform/linux-dpdk/odp_queue_eventdev.c index 0960c456e..b650874ec 100644 --- a/platform/linux-dpdk/odp_queue_eventdev.c +++ b/platform/linux-dpdk/odp_queue_eventdev.c @@ -1008,7 +1008,7 @@ static void queue_print(odp_queue_t handle) } ODP_PRINT("\nQueue info\n"); ODP_PRINT("----------\n"); - ODP_PRINT(" handle %p\n", handle); + ODP_PRINT(" handle %p\n", (void *)handle); ODP_PRINT(" index %" PRIu32 "\n", queue->s.index); ODP_PRINT(" name %s\n", queue->s.name); ODP_PRINT(" enq mode %s\n", diff --git a/platform/linux-dpdk/odp_timer.c b/platform/linux-dpdk/odp_timer.c index 68ce550f5..123de5640 100644 --- a/platform/linux-dpdk/odp_timer.c +++ b/platform/linux-dpdk/odp_timer.c @@ -982,7 +982,7 @@ void odp_timer_pool_print(odp_timer_pool_t timer_pool) ODP_PRINT("\nTimer pool info\n"); ODP_PRINT("---------------\n"); - ODP_PRINT(" timer pool %p\n", tp); + ODP_PRINT(" timer pool %p\n", (void *)tp); ODP_PRINT(" name %s\n", tp->name); ODP_PRINT(" num timers %u\n", tp->cur_timers); ODP_PRINT(" hwm timers %u\n", tp->hwm_timers); @@ -1001,7 +1001,7 @@ void odp_timer_print(odp_timer_t timer_hdl) ODP_PRINT("\nTimer info\n"); ODP_PRINT("----------\n"); - ODP_PRINT(" timer pool %p\n", timer->timer_pool); + ODP_PRINT(" timer pool %p\n", (void *)timer->timer_pool); ODP_PRINT(" timer index %" PRIu32 "\n", timer->timer_idx); ODP_PRINT(" dest queue 0x%" PRIx64 "\n", odp_queue_to_u64(timer->queue)); ODP_PRINT(" user ptr %p\n", timer->user_ptr); @@ -1035,7 +1035,7 @@ void odp_timeout_print(odp_timeout_t tmo) ODP_PRINT("\nTimeout info\n"); ODP_PRINT("------------\n"); ODP_PRINT(" tmo handle 0x%" PRIx64 "\n", odp_timeout_to_u64(tmo)); - ODP_PRINT(" timer pool %p\n", tp); + ODP_PRINT(" timer pool %p\n", (void *)tp); ODP_PRINT(" timer index %u\n", idx); ODP_PRINT(" expiration %" PRIu64 "\n", timeout_hdr->expiration); ODP_PRINT(" user ptr %p\n", timeout_hdr->user_ptr); |