summaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-26 11:46:08 -0700
committerJosh Blum <josh@joshknows.com>2010-07-26 11:46:08 -0700
commitf86c25317b457b280c697fc47905c79bdbbc0c93 (patch)
treec645e1743619672d828e0196f3d334381cb082d6 /host/examples
parent1e2f457ee118f55d753a4c124315ab17f8eb5f1b (diff)
downloaduhd-f86c25317b457b280c697fc47905c79bdbbc0c93.tar.gz
uhd-f86c25317b457b280c697fc47905c79bdbbc0c93.tar.bz2
uhd-f86c25317b457b280c697fc47905c79bdbbc0c93.zip
uhd: removed remaining template stuff from vrt packet handler, also tweaked format in rx timed samples
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/rx_timed_samples.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/host/examples/rx_timed_samples.cpp b/host/examples/rx_timed_samples.cpp
index 3b9acbb2c..4856f6779 100644
--- a/host/examples/rx_timed_samples.cpp
+++ b/host/examples/rx_timed_samples.cpp
@@ -74,8 +74,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
//setup streaming
std::cout << std::endl;
- std::cout << boost::format("Begin streaming %u samples, %d seconds in the future...")
- % total_num_samps % seconds_in_future << std::endl;
+ std::cout << boost::format(
+ "Begin streaming %u samples, %d seconds in the future..."
+ ) % total_num_samps % seconds_in_future << std::endl;
uhd::stream_cmd_t stream_cmd(uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_DONE);
stream_cmd.num_samps = total_num_samps;
stream_cmd.stream_now = false;
@@ -102,7 +103,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
if (num_acc_samps == 0) continue;
std::cout << boost::format(
"Got timeout before all samples received, possible packet loss, exiting loop..."
- ) % md.error_code << std::endl;
+ ) << std::endl;
goto done_loop;
default: