fix warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’}

This commit is contained in:
Philippe Teuwen 2019-03-10 00:11:29 +01:00
parent 554011f828
commit 22b43c65ec

View file

@ -89,7 +89,7 @@ void print_mpi(const char *msg, int radix, const mbedtls_mpi *X)
size_t len = 0;
mbedtls_mpi_write_string(X, radix, Xchar, sizeof(Xchar), &len);
printf("%s[%d] %s\n", msg, len, Xchar);
printf("%s[%ld] %s\n", msg, len, Xchar);
}
bool emv_rocacheck(const unsigned char *buf, size_t buflen, bool verbose)