aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/subdev_spec.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-17 17:16:54 +0000
committerJosh Blum <josh@joshknows.com>2010-08-17 17:16:54 +0000
commit1aa1404ebb59594a8c81b31f9b56ad35bd832a26 (patch)
tree5de014f592095c659e0e90f2264925210817df6c /host/lib/usrp/subdev_spec.cpp
parent1b47702245f0c1f4dda3e0eff487bbe664d48855 (diff)
parent7d110e73e6b0651f73e8e5b165244f59e66fed87 (diff)
downloaduhd-1aa1404ebb59594a8c81b31f9b56ad35bd832a26.tar.gz
uhd-1aa1404ebb59594a8c81b31f9b56ad35bd832a26.tar.bz2
uhd-1aa1404ebb59594a8c81b31f9b56ad35bd832a26.zip
Merge branch 'next' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_merge
Diffstat (limited to 'host/lib/usrp/subdev_spec.cpp')
-rw-r--r--host/lib/usrp/subdev_spec.cpp6
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();
}