Skip to content

Commit

Permalink
Debugged VERBOSITY mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian committed Sep 16, 2024
1 parent 9c0708a commit f2b478b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions sw/include/cLib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class cLib {

// ARP lookup to get the MAC-address for the remote QP IP-address
# ifdef VERBOSE
std::cout << "cLib: Initiate an Arp-lookup for the IP-address " << cThread->getQpair()->remote.ip_addr << std::endl;
std::cout << "cLib: Initiate an Arp-lookup for the IP-address " << cthread->getQpair()->remote.ip_addr << std::endl;
# endif
cthread->doArpLookup(cthread->getQpair()->remote.ip_addr);

Expand Down Expand Up @@ -285,7 +285,7 @@ class cLib {
memcpy(&cmpl_tid, recv_buff, sizeof(int32_t));

# ifdef VERBOSE
std::cout << "cLib: Read the cmplt_tid " << cmplt_tid << std::endl;
std::cout << "cLib: Read the cmpl_tid " << cmpl_tid << std::endl;
# endif

if(read(sockfd, recv_buff, sizeof(Cmpl)) != sizeof(Cmpl)) {
Expand Down Expand Up @@ -363,7 +363,7 @@ class cLib {
memcpy(&cmpl_tid, recv_buff, sizeof(int32_t));

# ifdef VERBOSE
std::cout << "cLib: Read the cmplt_tid " << cmplt_tid << std::endl;
std::cout << "cLib: Read the cmpl_tid " << cmpl_tid << std::endl;
# endif

// Read the completion event from the socket
Expand Down
2 changes: 1 addition & 1 deletion sw/include/cThread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class cThread : public bThread {
lck.unlock(); // Unlock the lock since the thread-sensitive interaction with the task-queue is done

# ifdef VERBOSE
std::cout << "cThread: Pulled a task from the task_queue with vfid " << getVfid() << ", task ID " << getTid() << ", oid " << getOid() << " and priority " << getPriority() << std::endl;
std::cout << "cThread: Pulled a task from the task_queue with vfid " << getVfid() << ", task ID " << curr_task->getTid() << ", oid " << curr_task->getOid() << " and priority " << curr_task->getPriority() << std::endl;
# endif

DBG3("Process task: vfid: " << getVfid() << ", tid: " << curr_task->getTid()
Expand Down
2 changes: 1 addition & 1 deletion sw/src/cSched.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ namespace fpga
(recIssued ? "operator loaded, " : "operator present, "), curr_req->ctid, curr_req->oid, curr_req->priority);

# ifdef VERBOSE
std::cout << "cSched: Task completed with ctid " << ctid << " and oid " << oid << " and priority " << priority << std::endl;
std::cout << "cSched: Task completed with ctid " << curr_req->ctid << " and oid " << curr_req->oid << " and priority " << curr_req->priority << std::endl;
# endif
}
else
Expand Down

0 comments on commit f2b478b

Please sign in to comment.