From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH 1/7] mempool: fix build with debug enabled Date: Tue, 3 Mar 2015 16:23:44 +0100 Message-ID: <1425396230-13379-2-git-send-email-thomas.monjalon@6wind.com> References: <1425396230-13379-1-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1425396230-13379-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" error: format =E2=80=98%p=E2=80=99 expects argument of type =E2=80=98void= *=E2=80=99, but argument 5 has type =E2=80=98const struct rte_mempool *=E2=80=99 [-We= rror=3Dformat=3D] mp type is (const struct rte_mempool *) and must be casted into a simpler type to be printed. Signed-off-by: Thomas Monjalon --- lib/librte_mempool/rte_mempool.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_me= mpool.h index 974e8d7..39f7233 100644 --- a/lib/librte_mempool/rte_mempool.h +++ b/lib/librte_mempool/rte_mempool.h @@ -345,7 +345,7 @@ static inline void __mempool_check_cookies(const stru= ct rte_mempool *mp, rte_log_set_history(0); RTE_LOG(CRIT, MEMPOOL, "obj=3D%p, mempool=3D%p, cookie=3D%" PRIx64 "\n", - obj, mp, cookie); + obj, (const void *) mp, cookie); rte_panic("MEMPOOL: bad header cookie (put)\n"); } __mempool_write_header_cookie(obj, 1); @@ -355,7 +355,7 @@ static inline void __mempool_check_cookies(const stru= ct rte_mempool *mp, rte_log_set_history(0); RTE_LOG(CRIT, MEMPOOL, "obj=3D%p, mempool=3D%p, cookie=3D%" PRIx64 "\n", - obj, mp, cookie); + obj, (const void *) mp, cookie); rte_panic("MEMPOOL: bad header cookie (get)\n"); } __mempool_write_header_cookie(obj, 0); @@ -366,7 +366,7 @@ static inline void __mempool_check_cookies(const stru= ct rte_mempool *mp, rte_log_set_history(0); RTE_LOG(CRIT, MEMPOOL, "obj=3D%p, mempool=3D%p, cookie=3D%" PRIx64 "\n", - obj, mp, cookie); + obj, (const void *) mp, cookie); rte_panic("MEMPOOL: bad header cookie (audit)\n"); } } @@ -375,7 +375,7 @@ static inline void __mempool_check_cookies(const stru= ct rte_mempool *mp, rte_log_set_history(0); RTE_LOG(CRIT, MEMPOOL, "obj=3D%p, mempool=3D%p, cookie=3D%" PRIx64 "\n", - obj, mp, cookie); + obj, (const void *) mp, cookie); rte_panic("MEMPOOL: bad trailer cookie\n"); } } --=20 2.2.2