The correct format specifier for uint64_t is PRIu64.
fixes these compilation issues on my rpi:
test/libtpm2-totp.c:49:39: error: format ‘%ld’ expects argument of type
‘long int’, but argument 5 has type ‘uint64_t’ {aka ‘long long unsigned
int’} [-Werror=format=]
snprintf(&totp_string[0], 7, "%.*ld", 6, totp);
~~~~^ ~~~~
%.*lld
test/libtpm2-totp.c:66:39: error: format ‘%ld’ expects argument of type
‘long int’, but argument 5 has type ‘uint64_t’ {aka ‘long long unsigned
int’} [-Werror=format=]
snprintf(&totp_string[0], 7, "%.*ld", 6, totp);
~~~~^ ~~~~
%.*lld
The correct format specifier for uint64_t is PRIu64.
fixes these compilation issues on my rpi:
Signed-off-by: Peter Huewe Peter.Huewe@infineon.com