Page MenuHomePhabricator

Refactor: Replace fprintf with tfm::format
AbandonedPublic

Authored by Fabien on Apr 20 2020, 12:14.

Details

Reviewers
jasonbcox
deadalnix
Group Reviewers
Restricted Project
Summary
This should be a refactor except in the cases where we use the wrong
format specifier, in which case this patch is a bug fix.

Backport of core PR16205.

This allows to reenable the fprintf detection in the locale dependence
linter.

Depends on D5776 and D5778.

Test Plan
arc lint --everything

ninja check check-functional

Diff Detail

Repository
rABC Bitcoin ABC
Branch
PR16205
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 10304
Build 18429: Default Diff Build & Tests
Build 18428: arc lint + arc unit

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
src/tinyformat.h
1089

Nit: comment style should be:

/**
 * stuff...
 */
This revision is now accepted and ready to land.Apr 20 2020, 15:55

There are a ton of callsites missing. Check

grep -r ../src/ -e fprintf | grep -v leveldb | grep -v secp256k1 | grep -v univalue

deadalnix requested changes to this revision.Apr 20 2020, 17:24
This revision now requires changes to proceed.Apr 20 2020, 17:24

Superseded by D5782 (add the seeder to the changes)