From 9ee34ec0f536d26f4b3a07de9f30104f83e4b312 Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Mon, 18 Dec 2023 14:56:47 +0000 Subject: [PATCH] crc: use macro to print 64-bit value Signed-off-by: Pablo de Lara --- crc/crc64_example.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crc/crc64_example.c b/crc/crc64_example.c index 64763a1..832d04c 100644 --- a/crc/crc64_example.c +++ b/crc/crc64_example.c @@ -28,6 +28,7 @@ **********************************************************************/ #include #include +#include #include #include "crc64.h" @@ -62,7 +63,8 @@ int main(int argc, char *argv[]) } fclose(in); - printf("total length is %ld, checksum is 0x%lx\n", total_in, crc64_checksum); + printf("total length is %" PRIu64 ", checksum is 0x%" PRIx64 "\n", total_in, + crc64_checksum); return 0; }