diff options
| author | Philip Kaufmann <[email protected]> | 2014-04-30 14:45:24 +0200 |
|---|---|---|
| committer | langerhans <[email protected]> | 2014-05-29 22:06:22 +0200 |
| commit | c8ccf301033fe63c3481fb618740eb36f0f175ad (patch) | |
| tree | 5e400112480cff259074cd4aefcbe78320ec0aae /src/main.cpp | |
| parent | Correct indentation (diff) | |
| download | discoin-c8ccf301033fe63c3481fb618740eb36f0f175ad.tar.xz discoin-c8ccf301033fe63c3481fb618740eb36f0f175ad.zip | |
use standard __func__ instead of __PRETTY_FUNCTION__
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 2b37d3774..271b42543 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1039,11 +1039,11 @@ bool GetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock fseek(file, postx.nTxOffset, SEEK_CUR); file >> txOut; } catch (std::exception &e) { - return error("%s : Deserialize or I/O error - %s", __PRETTY_FUNCTION__, e.what()); + return error("%s : Deserialize or I/O error - %s", __func__, e.what()); } hashBlock = header.GetHash(); if (txOut.GetHash() != hash) - return error("%s : txid mismatch", __PRETTY_FUNCTION__); + return error("%s : txid mismatch", __func__); return true; } } @@ -1127,7 +1127,7 @@ bool ReadBlockFromDisk(CBlock& block, const CDiskBlockPos& pos) filein >> block; } catch (std::exception &e) { - return error("%s : Deserialize or I/O error - %s", __PRETTY_FUNCTION__, e.what()); + return error("%s : Deserialize or I/O error - %s", __func__, e.what()); } // Check the header @@ -3317,7 +3317,7 @@ bool LoadExternalBlockFile(FILE* fileIn, CDiskBlockPos *dbp) break; } } catch (std::exception &e) { - LogPrintf("%s : Deserialize or I/O error - %s", __PRETTY_FUNCTION__, e.what()); + LogPrintf("%s : Deserialize or I/O error - %s", __func__, e.what()); } } fclose(fileIn); |