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