[PATCH 6.16 089/627] selftests/nolibc: correctly report errors from printf() and friends