crc: use macro to print 64-bit value

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
Pablo de Lara 2023-12-18 14:56:47 +00:00 committed by Tomasz Kantecki
parent cf967e5a37
commit 9ee34ec0f5

View File

@ -28,6 +28,7 @@
**********************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <assert.h>
#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;
}