refactor: drop format calls on strings without arguments #37055

Open
fanquake wants to merge 2 commits from strprintf_no_args into master AGit
fanquake commented 2026-12-02 16:46:12 +00:00 (Migrated from github.com)

Remove strprintf / tfm::format calls that are passed a format string with no arguments.

Remove `strprintf` / `tfm::format` calls that are passed a format string with no arguments.
DrahtBot commented 2026-12-02 16:57:11 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #37048 (Rename -onlynet to -outboundnet by darosior)
  • #37019 (http: free idle connection slots for waiting connections at the limit by optout21)
  • #37017 (wallet: Use util::Result for fee bumping methods by rustaceanrob)
  • #36897 (wallet, migration: Contain all legacy wallet and migration related things in its own subdirectory, namespace, and classes by achow101)
  • #36823 (wallet, migration: Skip legacy wallet records rather than erasing them, and drop unused record erase functions by achow101)
  • #36122 (BIP460: CISA for Taproot key path spends by fjahr)
  • #27260 (Enhanced error messages for invalid network prefix during address parsing. by portlandhodl)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/37055 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/37055.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/37055#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. A summary of reviews will appear here. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#37048](https://github.com/bitcoin/bitcoin/pull/37048) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/37048.svg"></sub> (Rename `-onlynet` to `-outboundnet` by darosior) * [#37019](https://github.com/bitcoin/bitcoin/pull/37019) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/37019.svg"></sub> (http: free idle connection slots for waiting connections at the limit by optout21) * [#37017](https://github.com/bitcoin/bitcoin/pull/37017) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/37017.svg"></sub> (wallet: Use `util::Result` for fee bumping methods by rustaceanrob) * [#36897](https://github.com/bitcoin/bitcoin/pull/36897) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36897.svg"></sub> (wallet, migration: Contain all legacy wallet and migration related things in its own subdirectory, namespace, and classes by achow101) * [#36823](https://github.com/bitcoin/bitcoin/pull/36823) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36823.svg"></sub> (wallet, migration: Skip legacy wallet records rather than erasing them, and drop unused record erase functions by achow101) * [#36122](https://github.com/bitcoin/bitcoin/pull/36122) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36122.svg"></sub> (BIP460: CISA for Taproot key path spends by fjahr) * [#27260](https://github.com/bitcoin/bitcoin/pull/27260) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/27260.svg"></sub> (Enhanced error messages for invalid network prefix during address parsing. by portlandhodl) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

No findings were published from this review.

Review coverage was incomplete.


Reviewed: b47a41ff42f2 · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:e1a29e5e677c47d383756f0fcf8f3760725c91d1104dd3ccb2f333b6217eba26:47880f5569fd2047d249266f337c4f2a509adf7d96c3ccb1c7644c2c2a650bff --> <!-- ralph-base:0bc1e88dd332476e143eaee3c74911f4ce91f0a1 --> <!-- ralph-head:b47a41ff42f269e950847f7a908e5465f8329b26 --> <!-- ralph-case:ba881344342a3c7cc11cae85895814a727317deacc35423aeb713638ccdf5422 --> No findings were published from this review. Review coverage was incomplete. <!-- Review tier: standard --> --- Reviewed: [`b47a41ff42f2`](<https://git.fish.foo/bitcoin/bitcoin/commit/b47a41ff42f269e950847f7a908e5465f8329b26>) · [Review report](<https://review.fish.foo/report/37055-b47a41ff42f269e950847f7a908e5465f8329b26-3462-1.html>) · [Previous reports](<https://review.fish.foo/traces/37055/>) [permalink](<https://review.fish.foo/report/37055-b47a41ff42f269e950847f7a908e5465f8329b26-3462-1.html>)
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!37055
No description provided.