From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E4E925A8C for ; Thu, 5 Mar 2015 14:15:55 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 05 Mar 2015 05:15:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,347,1422950400"; d="scan'208";a="675570485" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 05 Mar 2015 05:15:56 -0800 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t25DFqcv010911; Thu, 5 Mar 2015 21:15:52 +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 t25DFnbG013350; Thu, 5 Mar 2015 21:15:51 +0800 Received: (from dayuqiu@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t25DFnZv013346; Thu, 5 Mar 2015 21:15:49 +0800 From: Michael Qiu To: dev@dpdk.org Date: Thu, 5 Mar 2015 21:15:38 +0800 Message-Id: <1425561339-13300-3-git-send-email-michael.qiu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1425561339-13300-1-git-send-email-michael.qiu@intel.com> References: <1425561339-13300-1-git-send-email-michael.qiu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 2/3] app/test: Fix size_t printf formart 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: , X-List-Received-Date: Thu, 05 Mar 2015 13:15:56 -0000 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 formart "%zu" Signed-off-by: Michael Qiu --- 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' : ' '); -- 1.9.3