nit: might be nice introducing a LogFmt
alias here?
0diff --git a/src/logging.h b/src/logging.h
1index e0bd79f793..ed224565e6 100644
2--- a/src/logging.h
3+++ b/src/logging.h
4@@ -239,7 +239,10 @@ static inline bool LogAcceptCategory(BCLog::LogFlags category, BCLog::Level leve
5 bool GetLogCategory(BCLog::LogFlags& flag, std::string_view str);
6
7 template <typename... Args>
8-inline void LogPrintFormatInternal(std::string_view logging_function, std::string_view source_file, const int source_line, const BCLog::LogFlags flag, const BCLog::Level level, util::ConstevalFormatString<util::TrailingNewlineCheck, sizeof...(Args)> fmt, const Args&... args)
9+using LogFmt = util::ConstevalFormatString<util::TrailingNewlineCheck, sizeof...(Args)>;
10+
11+template <typename... Args>
12+inline void LogPrintFormatInternal(std::string_view logging_function, std::string_view source_file, const int source_line, const BCLog::LogFlags flag, const BCLog::Level level, LogFmt<Args...> fmt, const Args&... args)
13 {
14 if (LogInstance().Enabled()) {
15 std::string log_msg;
16diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h
17index e038c4c77a..a16f5c99d6 100644
18--- a/src/wallet/scriptpubkeyman.h
19+++ b/src/wallet/scriptpubkeyman.h
20@@ -254,7 +254,7 @@ public:
21
22 /** Prepends the wallet name in logging output to ease debugging in multi-wallet use cases */
23 template <typename... Params>
24- void WalletLogPrintf(util::ConstevalFormatString<util::TrailingNewlineCheck, sizeof...(Params)> wallet_fmt, const Params&... params) const
25+ void WalletLogPrintf(LogFmt<Params...> wallet_fmt, const Params&... params) const
26 {
27 LogInfo("%s %s\n", m_storage.GetDisplayName(), util::RemoveSuffixView(tfm::format(wallet_fmt, params...), "\n"));
28 };
29diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
30index f85bebe179..807c95ae1c 100644
31--- a/src/wallet/wallet.h
32+++ b/src/wallet/wallet.h
33@@ -927,7 +927,7 @@ public:
34
35 /** Prepends the wallet name in logging output to ease debugging in multi-wallet use cases */
36 template <typename... Params>
37- void WalletLogPrintf(util::ConstevalFormatString<util::TrailingNewlineCheck, sizeof...(Params)> wallet_fmt, const Params&... params) const
38+ void WalletLogPrintf(LogFmt<Params...> wallet_fmt, const Params&... params) const
39 {
40 LogInfo("%s %s\n", GetDisplayName(), util::RemoveSuffixView(tfm::format(wallet_fmt, params...), "\n"));
41 };