aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-05-16 20:42:09 +0200
committerMartin Braun <martin.braun@ettus.com>2014-07-11 13:05:24 +0200
commitf7ff585ef3b41e9b5923c7b8ded72e072f379453 (patch)
treed4c0a0242b956a03a41e007c51ca97d46a972c02 /host/utils
parentd99ce4ef99240778ec4d44f858d83b8af153cdf9 (diff)
downloaduhd-f7ff585ef3b41e9b5923c7b8ded72e072f379453.tar.gz
uhd-f7ff585ef3b41e9b5923c7b8ded72e072f379453.tar.bz2
uhd-f7ff585ef3b41e9b5923c7b8ded72e072f379453.zip
utils: uhd_usrp_probe gets argument --init-only
This will run the tool without the output (unless --tree is provided). Using --init-only, uhd_usrp_probe can be used to simply test a device in more detail than doing a uhd_find_device, but the output of the device initalization is not scrolled by because of the device info output.
Diffstat (limited to 'host/utils')
-rw-r--r--host/utils/uhd_usrp_probe.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/utils/uhd_usrp_probe.cpp b/host/utils/uhd_usrp_probe.cpp
index 98ed84850..04ccc1e5a 100644
--- a/host/utils/uhd_usrp_probe.cpp
+++ b/host/utils/uhd_usrp_probe.cpp
@@ -192,6 +192,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
("args", po::value<std::string>()->default_value(""), "device address args")
("tree", "specify to print a complete property tree")
("string", po::value<std::string>(), "query a string value from the properties tree")
+ ("init-only", "skip all queries, only initialize device")
;
po::variables_map vm;
@@ -218,7 +219,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
}
if (vm.count("tree") != 0) print_tree("/", tree);
- else std::cout << make_border(get_device_pp_string(tree)) << std::endl;
+ else if (not vm.count("init-only")) std::cout << make_border(get_device_pp_string(tree)) << std::endl;
return EXIT_SUCCESS;
}