diff options
| author | Jeff Garzik <[email protected]> | 2013-09-18 04:00:03 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2013-09-18 04:00:03 -0700 |
| commit | e0d6dd11e3d9246b510a78118497d81b6d94ee14 (patch) | |
| tree | 3f71daa59ac35c5dda44747c0b62dbc8602d8f1c /src/addrman.cpp | |
| parent | Merge pull request #2985 from theuni/included-tests (diff) | |
| parent | Replace printf with LogPrintf / LogPrint (diff) | |
| download | discoin-e0d6dd11e3d9246b510a78118497d81b6d94ee14.tar.xz discoin-e0d6dd11e3d9246b510a78118497d81b6d94ee14.zip | |
Merge pull request #3009 from gavinandresen/LogPrint
Remove #define printf, replace OutputDebugStringf with LogPrint(f)
Diffstat (limited to 'src/addrman.cpp')
| -rw-r--r-- | src/addrman.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp index 780edde90..731ff2abe 100644 --- a/src/addrman.cpp +++ b/src/addrman.cpp @@ -261,8 +261,6 @@ void CAddrMan::MakeTried(CAddrInfo& info, int nId, int nOrigin) void CAddrMan::Good_(const CService &addr, int64 nTime) { -// printf("Good: addr=%s\n", addr.ToString().c_str()); - int nId; CAddrInfo *pinfo = Find(addr, &nId); @@ -304,7 +302,7 @@ void CAddrMan::Good_(const CService &addr, int64 nTime) // TODO: maybe re-add the node, but for now, just bail out if (nUBucket == -1) return; - printf("Moving %s to tried\n", addr.ToString().c_str()); + LogPrint("addrman", "Moving %s to tried\n", addr.ToString().c_str()); // move nId to the tried tables MakeTried(info, nId, nUBucket); @@ -351,7 +349,6 @@ bool CAddrMan::Add_(const CAddress &addr, const CNetAddr& source, int64 nTimePen } else { pinfo = Create(addr, source, &nId); pinfo->nTime = max((int64)0, (int64)pinfo->nTime - nTimePenalty); -// printf("Added %s [nTime=%fhr]\n", pinfo->ToString().c_str(), (GetAdjustedTime() - pinfo->nTime) / 3600.0); nNew++; fNew = true; } |