diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-15 01:41:35 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-15 01:41:35 -0700 |
commit | 6c3d37caa3a47ca534c5e3a110adad0137d5d06d (patch) | |
tree | c3d314679464f7a23f99fde9bbe0dae5adee3a74 /host/lib/usrp/subdev_spec.cpp | |
parent | f0960e79489c6702d3bd79c40f9e24f2b9e5b42d (diff) | |
download | uhd-6c3d37caa3a47ca534c5e3a110adad0137d5d06d.tar.gz uhd-6c3d37caa3a47ca534c5e3a110adad0137d5d06d.tar.bz2 uhd-6c3d37caa3a47ca534c5e3a110adad0137d5d06d.zip |
usrp: give dboards a name (not a blank string), do automatic selection when not provided
Diffstat (limited to 'host/lib/usrp/subdev_spec.cpp')
-rw-r--r-- | host/lib/usrp/subdev_spec.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/host/lib/usrp/subdev_spec.cpp b/host/lib/usrp/subdev_spec.cpp index 765eecb3d..7a3e72867 100644 --- a/host/lib/usrp/subdev_spec.cpp +++ b/host/lib/usrp/subdev_spec.cpp @@ -53,13 +53,9 @@ std::string subdev_spec_t::to_pp_string(void) const{ size_t count = 0; ss << "Subdevice Specification:" << std::endl; BOOST_FOREACH(const subdev_spec_pair_t &pair, *this){ - std::string db_name = pair.db_name; - if (db_name == "") db_name = "0"; - std::string sd_name = pair.sd_name; - if (sd_name == "") sd_name = "0"; ss << boost::format( " Channel %d: Daughterboard %s, Subdevice %s" - ) % (count++) % db_name % sd_name << std::endl; + ) % (count++) % pair.db_name % pair.sd_name << std::endl; } return ss.str(); } |