diff mbox

linux-gen: fix odp_pool_print

Message ID 1469545787-18801-1-git-send-email-maxim.uvarov@linaro.org
State Superseded
Headers show

Commit Message

Maxim Uvarov July 26, 2016, 3:09 p.m. UTC
commit: 2d2e479 linux-gen: fix odp_pool_print
removed elements for prints but did not remove that
from format string.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
 somehow it passed odp-check run, I think we were lucky with stack allocation :)

 platform/linux-generic/odp_pool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.7.1.250.gff4ea60

Comments

Maxim Uvarov July 26, 2016, 3:16 p.m. UTC | #1
On 07/26/16 18:09, Maxim Uvarov wrote:
> commit: 2d2e479 linux-gen: fix odp_pool_print


will send v2, wrong reference...

> removed elements for prints but did not remove that

> from format string.

>

> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

> ---

>   somehow it passed odp-check run, I think we were lucky with stack allocation :)

>

>   platform/linux-generic/odp_pool.c | 2 +-

>   1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c

> index 0a427ed..415c9fa 100644

> --- a/platform/linux-generic/odp_pool.c

> +++ b/platform/linux-generic/odp_pool.c

> @@ -1103,7 +1103,7 @@ void odp_pool_print(odp_pool_t pool_hdl)

>   		odp_shm_to_u64(pool->s.pool_shm));

>   	ODP_DBG(" pool status     %s\n",

>   		pool->s.quiesced ? "quiesced" : "active");

> -	ODP_DBG(" pool opts       %s, %s, %s\n",

> +	ODP_DBG(" pool opts       %s, %s\n",

>   		pool->s.flags.unsegmented ? "unsegmented" : "segmented",

>   		pool->s.flags.predefined  ? "predefined" : "created");

>   	ODP_DBG(" pool base       %p\n",  pool->s.pool_base_addr);
diff mbox

Patch

diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c
index 0a427ed..415c9fa 100644
--- a/platform/linux-generic/odp_pool.c
+++ b/platform/linux-generic/odp_pool.c
@@ -1103,7 +1103,7 @@  void odp_pool_print(odp_pool_t pool_hdl)
 		odp_shm_to_u64(pool->s.pool_shm));
 	ODP_DBG(" pool status     %s\n",
 		pool->s.quiesced ? "quiesced" : "active");
-	ODP_DBG(" pool opts       %s, %s, %s\n",
+	ODP_DBG(" pool opts       %s, %s\n",
 		pool->s.flags.unsegmented ? "unsegmented" : "segmented",
 		pool->s.flags.predefined  ? "predefined" : "created");
 	ODP_DBG(" pool base       %p\n",  pool->s.pool_base_addr);