aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/scriptpubkeyman.h
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-08-08 09:30:51 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-08-08 10:55:11 +0200
commitfa6dc57760e0a04dbb2e365ca7ad9fd8171ebfdb (patch)
tree3caa69d46da3847125beadd629a54e339b21dec6 /src/wallet/scriptpubkeyman.h
parentfa244f3321de7884f530bb38493a8d0a0cec86ab (diff)
downloadbitcoin-fa6dc57760e0a04dbb2e365ca7ad9fd8171ebfdb.tar.xz
refactor: Enforce C-str fmt strings in WalletLogPrintf()
Diffstat (limited to 'src/wallet/scriptpubkeyman.h')
-rw-r--r--src/wallet/scriptpubkeyman.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h
index bf35c776ae..72051493a9 100644
--- a/src/wallet/scriptpubkeyman.h
+++ b/src/wallet/scriptpubkeyman.h
@@ -249,9 +249,10 @@ public:
virtual std::unordered_set<CScript, SaltedSipHasher> GetScriptPubKeys() const { return {}; };
/** Prepends the wallet name in logging output to ease debugging in multi-wallet use cases */
- template<typename... Params>
- void WalletLogPrintf(std::string fmt, Params... parameters) const {
- LogPrintf(("%s " + fmt).c_str(), m_storage.GetDisplayName(), parameters...);
+ template <typename... Params>
+ void WalletLogPrintf(const char* fmt, Params... parameters) const
+ {
+ LogPrintf(("%s " + std::string{fmt}).c_str(), m_storage.GetDisplayName(), parameters...);
};
/** Watch-only address added */