aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/uhd_config_info.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-12-01 16:22:32 -0800
committerMartin Braun <martin.braun@ettus.com>2016-12-09 11:25:23 -0800
commit785c9a14d60b302a6f1ea1de8eae46d9093b7d21 (patch)
tree3c7bf1ee6c968d8c08808be4aca327d3cc1568fe /host/utils/uhd_config_info.cpp
parent6e3bd5d696cc32421f87ea81c2cf1d8f5a6c80cf (diff)
downloaduhd-785c9a14d60b302a6f1ea1de8eae46d9093b7d21.tar.gz
uhd-785c9a14d60b302a6f1ea1de8eae46d9093b7d21.tar.bz2
uhd-785c9a14d60b302a6f1ea1de8eae46d9093b7d21.zip
utils: Added --abi-string to uhd_config_info
Diffstat (limited to 'host/utils/uhd_config_info.cpp')
-rw-r--r--host/utils/uhd_config_info.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/utils/uhd_config_info.cpp b/host/utils/uhd_config_info.cpp
index 78fcb201b..a071f0918 100644
--- a/host/utils/uhd_config_info.cpp
+++ b/host/utils/uhd_config_info.cpp
@@ -40,6 +40,7 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) {
("libusb-version", "Print libusb version")
("pkg-path", "Print pkg path")
("images-dir", "Print images dir")
+ ("abi-version", "Print ABI version string")
("print-all", "Print everything")
("version", "Print this UHD build's version")
("help", "Print help message")
@@ -94,6 +95,9 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) {
if(vm.count("images-dir") > 0 or print_all) {
std::cout << "Images directory: " << uhd::get_images_dir("") << std::endl;
}
+ if(vm.count("abi-version") > 0 or print_all) {
+ std::cout << "ABI version string: " << uhd::get_abi_string() << std::endl;
+ }
return EXIT_SUCCESS;
}