From patchwork Fri Mar 6 03:53:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Qiu X-Patchwork-Id: 3899 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id C16DD5677; Fri, 6 Mar 2015 04:53:43 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 4622C2EDA for ; Fri, 6 Mar 2015 04:53:40 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 05 Mar 2015 19:48:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,351,1422950400"; d="scan'208";a="675973215" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 05 Mar 2015 19:53:39 -0800 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t263raQp014454; Fri, 6 Mar 2015 11:53:37 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t263rYqc023998; Fri, 6 Mar 2015 11:53:36 +0800 Received: (from dayuqiu@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t263rYEN023994; Fri, 6 Mar 2015 11:53:34 +0800 From: Michael Qiu To: dev@dpdk.org Date: Fri, 6 Mar 2015 11:53:32 +0800 Message-Id: <1425614012-23837-1-git-send-email-michael.qiu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1425564054-13883-1-git-send-email-michael.qiu@intel.com> References: <1425564054-13883-1-git-send-email-michael.qiu@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] =?utf-8?q?=5BPATCH_2/3_v3=5D_app/test=3A_Fix_size=5Ft_?= =?utf-8?q?printf_format_issue?= 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" test_hash.c: In function ‘test_crc32_hash_alg_equiv’: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t’ [-Werror=format] According to C99, for size_t type should use format "%zu" Signed-off-by: Michael Qiu Acked-by: Bruce Richardson --- v3 --> v2: add acked-by field v2 --> v1: typo fix of "format" in commit log and title app/test/test_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_hash.c b/app/test/test_hash.c index 653dd86..c489b8b 100644 --- a/app/test/test_hash.c +++ b/app/test/test_hash.c @@ -226,7 +226,7 @@ test_crc32_hash_alg_equiv(void) if (i == CRC32_ITERATIONS) return 0; - printf("Failed test data (hex, %lu bytes total):\n", data_len); + printf("Failed test data (hex, %zu bytes total):\n", data_len); for (j = 0; j < data_len; j++) printf("%02X%c", ((uint8_t *)data64)[j], ((j+1) % 16 == 0 || j == data_len - 1) ? '\n' : ' ');