aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Fischofer <bill.fischofer@linaro.org>2017-12-11 11:04:57 -0600
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-12-12 23:14:02 +0300
commit6b5cdc77eb9759a2349b10372a964648559bc92c (patch)
treec3150d085ec1a8ae63637b265167c47873ddee7b
parentbb0ec2f991bc5b295928e87c8b9bc0efb92479d3 (diff)
downloadodp-master.tar.gz
linux-generic: pool: avoid direct use of printf() in odp_pool_print()HEADmaster
Use ODP_PRINT() rather than printf() to send output through the log function. Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Honnappa Nagarahalli <onnappa.nagarahalli@arm.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r--platform/linux-generic/odp_pool.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c
index d0e4674..abd5ef0 100644
--- a/platform/linux-generic/odp_pool.c
+++ b/platform/linux-generic/odp_pool.c
@@ -924,33 +924,33 @@ void odp_pool_print(odp_pool_t pool_hdl)
pool = pool_entry_from_hdl(pool_hdl);
- printf("\nPool info\n");
- printf("---------\n");
- printf(" pool %" PRIu64 "\n",
- odp_pool_to_u64(pool->pool_hdl));
- printf(" name %s\n", pool->name);
- printf(" pool type %s\n",
- pool->params.type == ODP_POOL_BUFFER ? "buffer" :
- (pool->params.type == ODP_POOL_PACKET ? "packet" :
- (pool->params.type == ODP_POOL_TIMEOUT ? "timeout" :
- "unknown")));
- printf(" pool shm %" PRIu64 "\n",
- odp_shm_to_u64(pool->shm));
- printf(" user area shm %" PRIu64 "\n",
- odp_shm_to_u64(pool->uarea_shm));
- printf(" num %u\n", pool->num);
- printf(" align %u\n", pool->align);
- printf(" headroom %u\n", pool->headroom);
- printf(" seg len %u\n", pool->seg_len);
- printf(" max data len %u\n", pool->max_len);
- printf(" tailroom %u\n", pool->tailroom);
- printf(" block size %u\n", pool->block_size);
- printf(" uarea size %u\n", pool->uarea_size);
- printf(" shm size %u\n", pool->shm_size);
- printf(" base addr %p\n", pool->base_addr);
- printf(" uarea shm size %u\n", pool->uarea_shm_size);
- printf(" uarea base addr %p\n", pool->uarea_base_addr);
- printf("\n");
+ ODP_PRINT("\nPool info\n");
+ ODP_PRINT("---------\n");
+ ODP_PRINT(" pool %" PRIu64 "\n",
+ odp_pool_to_u64(pool->pool_hdl));
+ ODP_PRINT(" name %s\n", pool->name);
+ ODP_PRINT(" pool type %s\n",
+ pool->params.type == ODP_POOL_BUFFER ? "buffer" :
+ (pool->params.type == ODP_POOL_PACKET ? "packet" :
+ (pool->params.type == ODP_POOL_TIMEOUT ? "timeout" :
+ "unknown")));
+ ODP_PRINT(" pool shm %" PRIu64 "\n",
+ odp_shm_to_u64(pool->shm));
+ ODP_PRINT(" user area shm %" PRIu64 "\n",
+ odp_shm_to_u64(pool->uarea_shm));
+ ODP_PRINT(" num %u\n", pool->num);
+ ODP_PRINT(" align %u\n", pool->align);
+ ODP_PRINT(" headroom %u\n", pool->headroom);
+ ODP_PRINT(" seg len %u\n", pool->seg_len);
+ ODP_PRINT(" max data len %u\n", pool->max_len);
+ ODP_PRINT(" tailroom %u\n", pool->tailroom);
+ ODP_PRINT(" block size %u\n", pool->block_size);
+ ODP_PRINT(" uarea size %u\n", pool->uarea_size);
+ ODP_PRINT(" shm size %u\n", pool->shm_size);
+ ODP_PRINT(" base addr %p\n", pool->base_addr);
+ ODP_PRINT(" uarea shm size %u\n", pool->uarea_shm_size);
+ ODP_PRINT(" uarea base addr %p\n", pool->uarea_base_addr);
+ ODP_PRINT("\n");
}
odp_pool_t odp_buffer_pool(odp_buffer_t buf)