diff --git a/tests/z_msgcodec_test.c b/tests/z_msgcodec_test.c index a699bc2d7..f8532592a 100644 --- a/tests/z_msgcodec_test.c +++ b/tests/z_msgcodec_test.c @@ -374,7 +374,7 @@ _z_msg_ext_t gen_zint_extension(void) { } void assert_eq_zint_extension(_z_msg_ext_zint_t *left, _z_msg_ext_zint_t *right) { - printf(" ZINT (%zu:%zu), ", left->_val, right->_val); + printf(" ZINT (%ju:%ju), ", (uintmax_t)left->_val, (uintmax_t)right->_val); assert(left->_val == right->_val); }