Small fix and improvements in debug messages

This commit is contained in:
Éder F. Zulian
2016-02-02 19:09:59 -02:00
parent f4f0ef1e06
commit 4a4284ab43
2 changed files with 3 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ void TlmRecorder::introduceTransactionSystem(tlm::tlm_generic_payload& trans)
else
currentTransactionsInSystem[&trans].timeOfGeneration = GenerationExtension::getExtension(&trans).TimeOfGeneration();
printDebugMessage("New transaction #" + to_string(id + 1) + " generation time " + currentTransactionsInSystem[&trans].timeOfGeneration.to_string());
printDebugMessage("New transaction #" + to_string(id) + " generation time " + currentTransactionsInSystem[&trans].timeOfGeneration.to_string());
if (id % transactionCommitRate == 0)
{
@@ -156,7 +156,7 @@ void TlmRecorder::removeTransactionFromSystem(tlm::tlm_generic_payload& trans)
{
assert(currentTransactionsInSystem.count(&trans) != 0);
printDebugMessage("Removing transaction #" + to_string(currentTransactionsInSystem[&trans].id + 1));
printDebugMessage("Removing transaction #" + to_string(currentTransactionsInSystem[&trans].id));
Transaction& recordingData = currentTransactionsInSystem[&trans];
recordedData.push_back(recordingData);

View File

@@ -136,8 +136,7 @@ void TracePlayer<BUSWIDTH>::peqCallback(tlm_generic_payload &payload, const tlm_
sendToTarget(payload, phase, SC_ZERO_TIME);
transactionsSent++;
DebugManager::getInstance().printDebugMessage(name(),
"Sending transaction number: " + std::to_string(transactionsSent));
DebugManager::getInstance().printDebugMessage(name(), "Performing request #" + std::to_string(transactionsSent));
}
else if (phase == END_REQ)
{