Fix macro name for @sprintf errors

Also fix triggering condition for "format must be a plain static string"
error
Only first argument for @sprintf is allowed to be a format string
Merge pull request #6200 from JuliaLang/sjk/sprintf

Fix macro name for @sprintf errors