Skip to content

Commit

Permalink
[Trivial] Align the format of the log messages in kernel.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Sep 23, 2019
1 parent faa9090 commit 84930b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void CSporkManager::ProcessSpork(CNode* pfrom, std::string& strCommand, CDataStr
// Do not accept sporks signed way too far into the future
if (spork.nTimeSigned > GetAdjustedTime() + 2 * 60 * 60) {
LOCK(cs_main);
LogPrintf("%s -- ERROR: too far into the future\n", __func__);
LogPrintf("%s : ERROR: too far into the future\n", __func__);
Misbehaving(pfrom->GetId(), 100);
return;
}
Expand Down Expand Up @@ -186,7 +186,7 @@ SporkId CSporkManager::GetSporkIDByName(std::string strName)
{
auto it = sporkDefsByName.find(strName);
if (it == sporkDefsByName.end()) {
LogPrintf("%s -- Unknown Spork name '%s'\n", __func__, strName);
LogPrintf("%s : Unknown Spork name '%s'\n", __func__, strName);
return SPORK_INVALID;
}
return it->second->sporkId;
Expand All @@ -196,7 +196,7 @@ std::string CSporkManager::GetSporkNameByID(SporkId nSporkID)
{
auto it = sporkDefsById.find(nSporkID);
if (it == sporkDefsById.end()) {
LogPrint("%s -- Unknown Spork ID %d\n", __func__, nSporkID);
LogPrint("%s : Unknown Spork ID %d\n", __func__, nSporkID);
return "Unknown";
}
return it->second->name;
Expand All @@ -212,7 +212,7 @@ bool CSporkManager::SetPrivKey(std::string strPrivKey)
if (spork.CheckSignature(fRequireNew)) {
LOCK(cs);
// Test signing successful, proceed
LogPrintf("%s : -- Successfully initialized as spork signer\n", __func__);
LogPrintf("%s : Successfully initialized as spork signer\n", __func__);
strMasterPrivKey = strPrivKey;
return true;
}
Expand Down

0 comments on commit 84930b9

Please sign in to comment.