Correct signedness of printf specifier in self tests

This commit is contained in:
Daniel King 2016-05-19 09:57:59 -03:00 committed by Manuel Pégourié-Gonnard
parent 16b04ce641
commit b6897f67a4
3 changed files with 3 additions and 3 deletions

View file

@ -430,7 +430,7 @@ int mbedtls_aead_chacha20_poly1305_self_test( int verbose )
{
if ( verbose != 0 )
{
mbedtls_printf( " ChaCha20-Poly1305 test %zi ", i );
mbedtls_printf( " ChaCha20-Poly1305 test %zu ", i );
}
result = mbedtls_aead_chacha20_poly1305_crypt_and_mac( test_key[i],

View file

@ -561,7 +561,7 @@ int mbedtls_chacha20_self_test( int verbose )
{
if ( verbose != 0 )
{
mbedtls_printf( " ChaCha20 test %zi ", i );
mbedtls_printf( " ChaCha20 test %zu ", i );
}
result = mbedtls_chacha20_crypt( test_keys[i],

View file

@ -492,7 +492,7 @@ int mbedtls_poly1305_self_test( int verbose )
{
if ( verbose != 0 )
{
mbedtls_printf( " Poly1305 test %zi ", i );
mbedtls_printf( " Poly1305 test %zu ", i );
}
result = mbedtls_poly1305_mac( test_keys[i],