diff mbox series

[v3,3/3] linux-generic: pool: avoid direct use of printf() in odp_pool_print()

Message ID 1513026020-24993-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v3,1/3] linux-generic: pool: validate params before creating pool | expand

Commit Message

Github ODP bot Dec. 11, 2017, 9 p.m. UTC
From: Bill Fischofer <bill.fischofer@linaro.org>


Use ODP_PRINT() rather than printf() to send output through the
log function.

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>

---
/** Email created from pull request 325 (Bill-Fischofer-Linaro:bug3465)
 ** https://github.com/Linaro/odp/pull/325
 ** Patch: https://github.com/Linaro/odp/pull/325.patch
 ** Base sha: 6881620135a179911a5839d4be97423a8d80e5ab
 ** Merge commit sha: 031d1e139f0c3b25b906fc9c79120fd327a758c4
 **/
 platform/linux-generic/odp_pool.c | 54 +++++++++++++++++++--------------------
 1 file changed, 27 insertions(+), 27 deletions(-)
diff mbox series

Patch

diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c
index d0e4674f9..abd5ef07a 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)