[Chapel Merge] Cleanup and fix some of the compiler/runtime printf attributes

Branch: refs/heads/main
Revision: 79b54dabd208980c72362f6069a41200ddab2ba7
Author: jabraham17
Link: Cleanup and fix some of the compiler/runtime printf attributes by jabraham17 · Pull Request #28490 · chapel-lang/chapel · GitHub
Log Message:
Cleanup and fix some of the compiler/runtime printf attributes (#28490)

Cleans up and fixes some the printf compiler attributes

Cleans up the usage/formatting of these attributes to be consistent as
well as fixes some off-by-one errors in the runtime.

[Reviewed by @benharsh and @PHHargrove]

Compare: Comparing 41d2e8017bf29a38a0bd8b1eff18846d21f4c4fd...e805ff1877cf840ceacc7abbdb94e59e2d386ecb · chapel-lang/chapel · GitHub

Diff:
M compiler/include/misc.h
M frontend/include/chpl/util/printf.h
M runtime/include/chpl-string-support.h
M runtime/include/chpllaunch.h
M runtime/include/error.h
M runtime/src/error.c
https://github.com/chapel-lang/chapel/pull/28490.diff