[PATCH v3] selftests: use printf instead of echo -ne