From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 720B35A74 for ; Tue, 3 Mar 2015 16:24:29 +0100 (CET) Received: by wghn12 with SMTP id n12so40798257wgh.1 for ; Tue, 03 Mar 2015 07:24:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=4L7SrMb+YCVaA42nNQd/Xa3L0zDZiZflB5J1MsPc3kI=; b=MRcLaw/m9lq3d9xrl8o0qtcjgeAY43JCxHgE2L5ly4eKAkdAQy9YCuwR/3GbjY9DO7 5f5iakb97G+6aobOZYRE8VV6NbQ4YOtai/BghidvrQXWPLgR1NP6SOkFLAgSP3VxTarI XIdJbh2yxGRSg8DukFOnrbLUznr9SWVMmUrvu8WZylBwzcyYw20YZEBERInLfxavSOvS he0/xENi3ih7Fa92TPdm4TL+wMcfitosY9otpHCnC/2/kI2Fd4mz6Wypnjg+Uggo0QZ/ VsWMRUAf7ggQ41/kDwCV6H6R7s2xk6qV4yMjinS8tlVqk+a/qZ/e+Oi9WJ16ZbeSoR7v wKfQ== X-Gm-Message-State: ALoCoQkux5hAxuRTFOxM7U73G7psCF+kkjXmbZAIFlHTljv020lwcqDJvZDikhRbimkKbI9UKGfE X-Received: by 10.194.158.39 with SMTP id wr7mr71736772wjb.118.1425396269300; Tue, 03 Mar 2015 07:24:29 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id gf11sm2889236wic.18.2015.03.03.07.24.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Mar 2015 07:24:28 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 3 Mar 2015 16:23:44 +0100 Message-Id: <1425396230-13379-2-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1425396230-13379-1-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: 8bit Subject: [dpdk-dev] [PATCH 1/7] mempool: fix build with debug enabled X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2015 15:24:29 -0000 error: format ‘%p’ expects argument of type ‘void *’, but argument 5 has type ‘const struct rte_mempool *’ [-Werror=format=] 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_mempool.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 struct rte_mempool *mp, rte_log_set_history(0); RTE_LOG(CRIT, MEMPOOL, "obj=%p, mempool=%p, cookie=%" 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 struct rte_mempool *mp, rte_log_set_history(0); RTE_LOG(CRIT, MEMPOOL, "obj=%p, mempool=%p, cookie=%" 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 struct rte_mempool *mp, rte_log_set_history(0); RTE_LOG(CRIT, MEMPOOL, "obj=%p, mempool=%p, cookie=%" 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 struct rte_mempool *mp, rte_log_set_history(0); RTE_LOG(CRIT, MEMPOOL, "obj=%p, mempool=%p, cookie=%" PRIx64 "\n", - obj, mp, cookie); + obj, (const void *) mp, cookie); rte_panic("MEMPOOL: bad trailer cookie\n"); } } -- 2.2.2