refactor: Enforce C-str fmt strings in WalletLogPrintf()

This commit is contained in:
MarcoFalke
2023-08-08 09:30:51 +02:00
parent fa244f3321
commit fa6dc57760
5 changed files with 15 additions and 13 deletions

View File

@@ -2319,7 +2319,7 @@ OutputType CWallet::TransactionChangeType(const std::optional<OutputType>& chang
void CWallet::CommitTransaction(CTransactionRef tx, mapValue_t mapValue, std::vector<std::pair<std::string, std::string>> orderForm)
{
LOCK(cs_wallet);
WalletLogPrintf("CommitTransaction:\n%s", tx->ToString());
WalletLogPrintf("CommitTransaction:\n%s", tx->ToString()); // NOLINT(bitcoin-unterminated-logprintf)
// Add tx to wallet, because if it has change it's also ours,
// otherwise just for transaction history.