From: Hemant Agrawal Date: Tue, 10 Oct 2017 14:17:11 +0000 (+0530) Subject: mempool: remove get capability debug log X-Git-Tag: spdx-start~1447 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e9508b64cadf091cf49bd128ab625b4ea68b3888;p=dpdk.git mempool: remove get capability debug log This is not required to be printed for every mempool call. Signed-off-by: Hemant Agrawal Reviewed-by: Santosh Shukla --- diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index 57a4f8122a..6357fd48e7 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -559,10 +559,7 @@ rte_mempool_populate_default(struct rte_mempool *mp) /* Get mempool capabilities */ mp_flags = 0; ret = rte_mempool_ops_get_capabilities(mp, &mp_flags); - if (ret == -ENOTSUP) - RTE_LOG(DEBUG, MEMPOOL, "get_capability not supported for %s\n", - mp->name); - else if (ret < 0) + if ((ret < 0) && (ret != -ENOTSUP)) return ret; /* update mempool capabilities */