doc: @printf, @sprintf for #1170
Merge pull request #2532 from ihnorton/master

document @printf,@sprintf, fixes #1170