Revert "remove a few gcc format attributes from some printf-like functions"

This reverts commit 25f5ba94aca1e89ee5f0c66513e58826afa3b853.
Disable format string checking by default

Instead of removing format attributes altogether, disable the checks
by default. This allows you to do a build with format string checks
and filter out the false positives (basically anything mentioning
%p).
Fix a number of format issues