[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r5722 - gnuradio/branches/developers/gnychis/inband/us
From: |
gnychis |
Subject: |
[Commit-gnuradio] r5722 - gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband |
Date: |
Wed, 6 Jun 2007 17:02:21 -0600 (MDT) |
Author: gnychis
Date: 2007-06-06 17:02:21 -0600 (Wed, 06 Jun 2007)
New Revision: 5722
Modified:
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband_usrp_server.cc
Log:
Work-in-progress on TX QA code, moving checks out of specific methods since
they are all the same
Modified:
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband_usrp_server.cc
===================================================================
---
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband_usrp_server.cc
2007-06-06 22:58:48 UTC (rev 5721)
+++
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/qa_inband_usrp_server.cc
2007-06-06 23:02:21 UTC (rev 5722)
@@ -901,11 +901,15 @@
pmt_t e_status = pmt_nth(1, expected);
if(!pmt_eqv(e_status, status) || !pmt_eqv(e_event, event)) {
- // std::cout << "[qa_tx_top] FAILED check_allocation... Got: " << result
<< " Expected: " << expected_result << " for event " << msg->signal() << ")\n";
+ if(verbose)
+ std::cout << "[qa_tx_top] FAILED check_allocation... Got: " << status
+ << " Expected: " << e_status
+ << " for event " << event << ")\n";
shutdown_all(PMT_F);
return;
} else {
- // std::cout << "[qa_tx_top] Received expected allocation response for
message\n";
+ if(verbose)
+ std::cout << "[qa_tx_top] Received expected allocation response\n";
}
if(pmt_eqv(status, PMT_T)) {
@@ -930,13 +934,15 @@
pmt_t e_status = pmt_nth(1, expected);
if(!pmt_eqv(e_status, status) || !pmt_eqv(e_event, event)) {
- //std::cout << "[qa_tx_top] FAILED check_xmit... Got: " << result
- // << " Expected: " << expected_result
- // << " for event " << msg->signal() << ")\n";
+ if(verbose)
+ std::cout << "[qa_tx_top] FAILED check_xmit... Got: " << status
+ << " Expected: " << e_status
+ << " for event " << event << ")\n";
shutdown_all(PMT_F);
return;
} else {
- // std::cout << "[qa_tx_top] Received expected xmit response for
message\n";
+ if(verbose)
+ std::cout << "[qa_tx_top] Received expected xmit response\n";
}
}
@@ -953,12 +959,16 @@
pmt_t e_status = pmt_nth(1, expected);
if(!pmt_eqv(e_status, status) || !pmt_eqv(e_event, event)) {
- // std::cout << "[qa_tx_top] FAILED check_cs... Got: " << result << "
Expected: " << expected_result << " for event " << msg->signal() << "\n";
+ if(verbose)
+ std::cout << "[qa_tx_top] FAILED check_cs... Got: " << status
+ << " Expected: " << e_status
+ << " for event " << event << "\n";
shutdown_all(PMT_F);
return;
} else {
- // std::cout << "[qa_tx_top] Received expected CS response for message ("
- //<< msg->signal() << ")\n";
+ if(verbose)
+ std::cout << "[qa_tx_top] Received expected CS response for message ("
+ << event << ")\n";
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r5722 - gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband,
gnychis <=