mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
[logging] Comment all continuing logs.
Most logs should terminated with a '\n'. Some logs are built up over multiple calls to logPrintf(), so do not need a newline terminater. Comment all of these 'continued' logs as a linter hing.
This commit is contained in:
@@ -81,20 +81,20 @@ static void potential_deadlock_detected(const std::pair<void*, void*>& mismatch,
|
||||
LogPrintf("Previous lock order was:\n");
|
||||
for (const std::pair<void*, CLockLocation> & i : s2) {
|
||||
if (i.first == mismatch.first) {
|
||||
LogPrintf(" (1)");
|
||||
LogPrintf(" (1)"); /* Continued */
|
||||
}
|
||||
if (i.first == mismatch.second) {
|
||||
LogPrintf(" (2)");
|
||||
LogPrintf(" (2)"); /* Continued */
|
||||
}
|
||||
LogPrintf(" %s\n", i.second.ToString());
|
||||
}
|
||||
LogPrintf("Current lock order is:\n");
|
||||
for (const std::pair<void*, CLockLocation> & i : s1) {
|
||||
if (i.first == mismatch.first) {
|
||||
LogPrintf(" (1)");
|
||||
LogPrintf(" (1)"); /* Continued */
|
||||
}
|
||||
if (i.first == mismatch.second) {
|
||||
LogPrintf(" (2)");
|
||||
LogPrintf(" (2)"); /* Continued */
|
||||
}
|
||||
LogPrintf(" %s\n", i.second.ToString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user