From: Michael Qiu Date: Fri, 6 Mar 2015 03:53:32 +0000 (+0800) Subject: app/test: fix printf format X-Git-Tag: spdx-start~9467 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4d2c67be57d010f8b6a1ba0602a09808576260ef;p=dpdk.git app/test: fix printf format 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 --- diff --git a/app/test/test_hash.c b/app/test/test_hash.c index 653dd8675b..c489b8b50f 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' : ' ');