Fix macro name for @sprintf errors

Also fix triggering condition for "format must be a plain static string"
error