[PATCH v3 28/32] selftests/nolibc: use snprintf() for printf tests