tpm12: Use proper format specifier %zu for size_t (CID1517801 & 1517798)

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2023-07-12 17:57:55 -04:00 committed by Stefan Berger
parent 52e98e9758
commit f2b5d0c128

View File

@ -763,7 +763,7 @@ TPM_RESULT TPM_RSAPrivateDecrypt(unsigned char *decrypt_data, /* decrypted dat
}
if (rc == 0) {
if (outlen > decrypt_data_size) {
printf("TPM_RSAPrivateDecrypt: Error, decrypt_data_size %u too small for message size %u\n",
printf("TPM_RSAPrivateDecrypt: Error, decrypt_data_size %zu too small for message size %zu\n",
decrypt_data_size, outlen);
rc = TPM_DECRYPT_ERROR;
}