Revert "Use echo -n instead of printf"

This reverts commit dbb749611ef636f3d3a43a051cf174a7b8e06188.