Revision a0ad50f9

b/host/utils/uhd_usrp_probe.cpp
69 69
    return ss.str();
70 70
}
71 71

  
72
static std::string get_subdev_pp_string(const std::string &type, property_tree::sptr tree, const fs_path &path){
72
static std::string get_frontend_pp_string(const std::string &type, property_tree::sptr tree, const fs_path &path){
73 73
    std::stringstream ss;
74
    ss << boost::format("%s Subdev: %s") % type % path.leaf() << std::endl;
74
    ss << boost::format("%s Frontend: %s") % type % path.leaf() << std::endl;
75 75
    //ss << std::endl;
76 76

  
77 77
    ss << boost::format("Name: %s") % (tree->access<std::string>(path / "name").get()) << std::endl;
......
123 123
        if (not gdb_eeprom.serial.empty()) ss << boost::format("Serial: %s") % gdb_eeprom.serial << std::endl;
124 124
    }
125 125
    BOOST_FOREACH(const std::string &name, tree->list(path / (prefix + "_frontends"))){
126
        ss << make_border(get_subdev_pp_string(type, tree, path / (prefix + "_frontends") / name));
126
        ss << make_border(get_frontend_pp_string(type, tree, path / (prefix + "_frontends") / name));
127 127
    }
128 128
    ss << make_border(get_codec_pp_string(type, tree, path.branch_path().branch_path() / (prefix + "_codecs") / path.leaf()));
129 129
    return ss.str();
......
137 137
    BOOST_FOREACH(const std::string &key, mb_eeprom.keys()){
138 138
        if (not mb_eeprom[key].empty()) ss << boost::format("%s: %s") % key % mb_eeprom[key] << std::endl;
139 139
    }
140
    if (tree->exists(path / "fw_version")){
141
        ss << "FW Version: " << tree->access<std::string>(path / "fw_version").get() << std::endl;
142
    }
143
    if (tree->exists(path / "fpga_version")){
144
        ss << "FPGA Version: " << tree->access<std::string>(path / "fpga_version").get() << std::endl;
145
    }
140 146
    ss << std::endl;
141 147
    ss << "Time sources: " << prop_names_to_pp_string(tree->access<std::vector<std::string> >(path / "time_source" / "options").get()) << std::endl;
142 148
    ss << "Clock sources: " << prop_names_to_pp_string(tree->access<std::vector<std::string> >(path / "clock_source" / "options").get()) << std::endl;

Also available in: Unified diff