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