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