From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Qiu Subject: =?utf-8?q?=5BPATCH_2/3_v3=5D_app/test=3A_Fix_size=5Ft_?= =?utf-8?q?printf_format_issue?= Date: Fri, 6 Mar 2015 11:53:32 +0800 Message-ID: <1425614012-23837-1-git-send-email-michael.qiu@intel.com> References: <1425564054-13883-1-git-send-email-michael.qiu@intel.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: <1425564054-13883-1-git-send-email-michael.qiu-ral2JQCrhuEAvxtiuMwx3w@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" test_hash.c: In function =E2=80=98test_crc32_hash_alg_equiv=E2=80=99: error: format =E2=80=98%lu=E2=80=99 expects argument of type =E2=80=98lon= g unsigned int=E2=80=99, but argument 2 has type =E2=80=98size_t=E2=80=99 [-Werror=3Dformat] 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=20 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 =3D=3D CRC32_ITERATIONS) return 0; =20 - printf("Failed test data (hex, %lu bytes total):\n", data_len); + printf("Failed test data (hex, %zu bytes total):\n", data_len); for (j =3D 0; j < data_len; j++) printf("%02X%c", ((uint8_t *)data64)[j], ((j+1) % 16 =3D=3D 0 || j =3D=3D data_len - 1) ? '\n' : ' '); --=20 1.9.3