aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2018-04-04 15:52:18 -0400
committerMarcoFalke <falke.marco@gmail.com>2018-07-12 10:03:02 -0400
commit2291774bd5a4cd7692db27de09728c98298db599 (patch)
treeb7cc1884fbb751f709895ac7e7ef060e9301b2f4
parentcf6feb783764bd37647548c4013a1dde605dcc54 (diff)
downloadbitcoin-2291774bd5a4cd7692db27de09728c98298db599.tar.xz
[trivial] Add newlines to end of log messages.
Log messages should terminate with a '\n', or the following log will be written to the same line without a timestamp. Fix a couple of cases where the message is not terminated with a \n. Github-Pull: #12887 Rebased-From: 5b10ab0116245ee73b493e2248ad2f8bb8e34f21
-rw-r--r--src/init.cpp2
-rw-r--r--src/wallet/wallet.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 382915a633..68933b0d34 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -684,7 +684,7 @@ void ThreadImport(std::vector<fs::path> vImportFiles)
// scan for better chains in the block chain database, that are not yet connected in the active best chain
CValidationState state;
if (!ActivateBestChain(state, chainparams)) {
- LogPrintf("Failed to connect best block");
+ LogPrintf("Failed to connect best block\n");
StartShutdown();
return;
}
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index b4d76e5f91..92a3c4e914 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -891,7 +891,7 @@ bool CWallet::MarkReplaced(const uint256& originalHash, const uint256& newHash)
bool success = true;
if (!walletdb.WriteTx(wtx)) {
- LogPrintf("%s: Updating walletdb tx %s failed", __func__, wtx.GetHash().ToString());
+ LogPrintf("%s: Updating walletdb tx %s failed\n", __func__, wtx.GetHash().ToString());
success = false;
}