summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rw-r--r--host/examples/rx_samples_to_file.cpp7
-rw-r--r--host/examples/rx_samples_to_udp.cpp7
2 files changed, 0 insertions, 14 deletions
diff --git a/host/examples/rx_samples_to_file.cpp b/host/examples/rx_samples_to_file.cpp
index 6671644fa..c80d2a6de 100644
--- a/host/examples/rx_samples_to_file.cpp
+++ b/host/examples/rx_samples_to_file.cpp
@@ -46,7 +46,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
("rate", po::value<double>(&rate)->default_value(100e6/16), "rate of incoming samples")
("freq", po::value<double>(&freq)->default_value(0), "rf center frequency in Hz")
("gain", po::value<float>(&gain)->default_value(0), "gain for the RF chain")
- ("dilv", "specify to disable inner-loop verbose")
;
po::variables_map vm;
po::store(po::parse_command_line(argc, argv, desc), vm);
@@ -58,8 +57,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
return ~0;
}
- bool verbose = vm.count("dilv") == 0;
-
//create a usrp device
std::cout << std::endl;
std::cout << boost::format("Creating the usrp device with: %s...") % args << std::endl;
@@ -126,10 +123,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
//write complex short integer samples to the binary file
outfile.write((const char*)&buff[0], num_rx_samps * sizeof(std::complex<short>));
- if(verbose) std::cout << boost::format(
- "Got packet: %u samples, %u full secs, %f frac secs"
- ) % num_rx_samps % md.time_spec.get_full_secs() % md.time_spec.get_frac_secs() << std::endl;
-
num_acc_samps += num_rx_samps;
} done_loop:
diff --git a/host/examples/rx_samples_to_udp.cpp b/host/examples/rx_samples_to_udp.cpp
index c81b43ee3..488c95494 100644
--- a/host/examples/rx_samples_to_udp.cpp
+++ b/host/examples/rx_samples_to_udp.cpp
@@ -48,7 +48,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
("gain", po::value<float>(&gain)->default_value(0), "gain for the RF chain")
("port", po::value<std::string>(&port)->default_value("7124"), "server udp port")
("addr", po::value<std::string>(&addr)->default_value("192.168.1.10"), "resolvable server address")
- ("dilv", "specify to disable inner-loop verbose")
;
po::variables_map vm;
po::store(po::parse_command_line(argc, argv, desc), vm);
@@ -60,8 +59,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
return ~0;
}
- bool verbose = vm.count("dilv") == 0;
-
//create a usrp device
std::cout << std::endl;
std::cout << boost::format("Creating the usrp device with: %s...") % args << std::endl;
@@ -128,10 +125,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
//send complex single precision floating point samples over udp
udp_xport->send(boost::asio::buffer(buff, num_rx_samps));
- if(verbose) std::cout << boost::format(
- "Got packet: %u samples, %u full secs, %f frac secs"
- ) % num_rx_samps % md.time_spec.get_full_secs() % md.time_spec.get_frac_secs() << std::endl;
-
num_acc_samps += num_rx_samps;
} done_loop: