Skip to content

Commit bcd4b0f

Browse files
Add linting of WalletLogPrintf(...) format strings
1 parent a3e4556 commit bcd4b0f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test/lint/lint-format-strings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
("src/netbase.cpp", "LogConnectFailure(bool manual_connection, const char* fmt, const Args&... args)"),
1919
("src/util.cpp", "strprintf(_(COPYRIGHT_HOLDERS), _(COPYRIGHT_HOLDERS_SUBSTITUTION))"),
2020
("src/util.cpp", "strprintf(COPYRIGHT_HOLDERS, COPYRIGHT_HOLDERS_SUBSTITUTION)"),
21+
("src/wallet/wallet.h", "WalletLogPrintf(std::string fmt, Params... parameters)"),
22+
("src/wallet/wallet.h", "LogPrintf((\"%s \" + fmt).c_str(), GetDisplayName(), parameters...)"),
2123
]
2224

2325

test/lint/lint-format-strings.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ FUNCTION_NAMES_AND_NUMBER_OF_LEADING_ARGUMENTS=(
2424
vprintf,1
2525
vsnprintf,1
2626
vsprintf,1
27+
WalletLogPrintf,0
2728
)
2829

2930
EXIT_CODE=0

0 commit comments

Comments
 (0)