Refactor: Replace fprintf with tfm::format
Summary:
- tinyformat: Add doc to Bitcoin Core specific strprintf
- scripted-diff: Replace fprintf with tfm::format
-BEGIN VERIFY SCRIPT-
sed -i --regexp-extended -e 's/fprintf\(std(err|out), /tfm::format(std::c\1, /g' $(git grep -l 'fprintf(' -- ':(exclude)src/crypto' ':(exclude)src/leveldb' ':(exclude)src/univalue' ':(exclude)src/secp256k1')
-END VERIFY SCRIPT-
fixup! scripted-diff: Replace fprintf with tfm::format
- Replace remaining fprintf with tfm::format manually
This is a backport of Core PR16205
Test Plan:
grep -r ../src/ -e fprintf | grep -v leveldb | grep -v secp256k1 | grep -v univalue
Check that there are no mre unexpected callsites.
ninja all check-all arc lint --everything
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Subscribers: Fabien
Differential Revision: https://reviews.bitcoinabc.org/D5782