Make the "pr" function use `printf` instead of `echo sprintf`
Merge pull request #1626 from ataylor32/pr-printf

Make the "pr" function use `printf` instead of `echo sprintf`