log: Remove NOLINT(bitcoin-unterminated-logprintf)

This commit is contained in:
MarcoFalke
2024-07-19 15:23:28 +02:00
parent ec74f45741
commit fa18fc7050
3 changed files with 10 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ public:
assert(p <= limit);
base[std::min(bufsize - 1, (int)(p - base))] = '\0';
LogPrintLevel(BCLog::LEVELDB, BCLog::Level::Debug, "%s", base); // NOLINT(bitcoin-unterminated-logprintf)
LogDebug(BCLog::LEVELDB, "%s\n", util::RemoveSuffixView(base, "\n"));
if (base != buffer) {
delete[] base;
}