From 8f5a29ae409eeffa69d2c531cd828c19e3d277ea Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Mon, 11 Apr 2022 12:59:45 +0100 Subject: [PATCH] Improve fix for printf specifier Signed-off-by: Dave Rodgman --- programs/test/selftest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/test/selftest.c b/programs/test/selftest.c index aa3a2c2b6..0c40686f7 100644 --- a/programs/test/selftest.c +++ b/programs/test/selftest.c @@ -49,6 +49,7 @@ #include "mbedtls/ecjpake.h" #include "mbedtls/timing.h" #include "mbedtls/nist_kw.h" +#include "mbedtls/debug.h" #include #include @@ -397,7 +398,7 @@ int main( int argc, char *argv[] ) } \ } else { \ mbedtls_printf( "Padding checks only implemented for types of size 2, 4 or 8" \ - " - cannot check type '" #TYPE "' of size %zu\n", \ + " - cannot check type '" #TYPE "' of size %" MBEDTLS_PRINTF_SIZET "\n", \ sizeof( TYPE ) ); \ mbedtls_exit( MBEDTLS_EXIT_FAILURE ); \ } \