Don't use %llx in printf
We still do MinGW builds on our CI whose printf doesn't support it!
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
diff --git a/programs/test/metatest.c b/programs/test/metatest.c
index 1a638b5..d3173f3 100644
--- a/programs/test/metatest.c
+++ b/programs/test/metatest.c
@@ -54,7 +54,10 @@
(void) name;
unsigned (*p)(void);
mbedtls_platform_zeroize(&p, sizeof(p));
- mbedtls_printf("%llx() -> %u\n", (unsigned long long) (uintptr_t) p, p());
+ /* The pointer representation may be truncated, but we don't care:
+ * the only point of printing it is to have some use of the pointer
+ * to dissuade the compiler from optimizing it away. */
+ mbedtls_printf("%lx() -> %u\n", (unsigned long) (uintptr_t) p, p());
}