@@ -1032,11 +1032,11 @@ bool GetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock
10321032 fseek (file, postx.nTxOffset , SEEK_CUR);
10331033 file >> txOut;
10341034 } catch (std::exception &e) {
1035- return error (" %s : Deserialize or I/O error - %s" , __PRETTY_FUNCTION__ , e.what ());
1035+ return error (" %s : Deserialize or I/O error - %s" , __func__ , e.what ());
10361036 }
10371037 hashBlock = header.GetHash ();
10381038 if (txOut.GetHash () != hash)
1039- return error (" %s : txid mismatch" , __PRETTY_FUNCTION__ );
1039+ return error (" %s : txid mismatch" , __func__ );
10401040 return true ;
10411041 }
10421042 }
@@ -1120,7 +1120,7 @@ bool ReadBlockFromDisk(CBlock& block, const CDiskBlockPos& pos)
11201120 filein >> block;
11211121 }
11221122 catch (std::exception &e) {
1123- return error (" %s : Deserialize or I/O error - %s" , __PRETTY_FUNCTION__ , e.what ());
1123+ return error (" %s : Deserialize or I/O error - %s" , __func__ , e.what ());
11241124 }
11251125
11261126 // Check the header
@@ -3126,7 +3126,7 @@ bool LoadExternalBlockFile(FILE* fileIn, CDiskBlockPos *dbp)
31263126 break ;
31273127 }
31283128 } catch (std::exception &e) {
3129- LogPrintf (" %s : Deserialize or I/O error - %s" , __PRETTY_FUNCTION__ , e.what ());
3129+ LogPrintf (" %s : Deserialize or I/O error - %s" , __func__ , e.what ());
31303130 }
31313131 }
31323132 fclose (fileIn);
0 commit comments