diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-03-17 10:31:51 +0100 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-03-17 10:31:51 +0100 |
commit | fb798361581d15f59e968c8c4c524801b63762fb (patch) | |
tree | 7180861844236b1840875bffae557fe1a2341e20 /lib/osmosdr_source_c_impl.cc | |
parent | 901dca8135507c0bde0c187ba9226c3d63aabcc6 (diff) |
print gnuradio version information in startup message
Diffstat (limited to 'lib/osmosdr_source_c_impl.cc')
-rw-r--r-- | lib/osmosdr_source_c_impl.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/osmosdr_source_c_impl.cc b/lib/osmosdr_source_c_impl.cc index 708831c..b8e4a2a 100644 --- a/lib/osmosdr_source_c_impl.cc +++ b/lib/osmosdr_source_c_impl.cc @@ -31,6 +31,7 @@ #include <gr_io_signature.h> #include <gr_noise_source_c.h> #include <gr_throttle.h> +#include <gnuradio/gr_constants.h> #ifdef ENABLE_OSMOSDR #include <osmosdr_src_c.h> @@ -113,10 +114,10 @@ osmosdr_source_c_impl::osmosdr_source_c_impl (const std::string &args) dev_types.push_back("miri"); #endif - std::cerr << "gr-osmosdr (" - << GR_OSMOSDR_VERSION << " / " << GR_OSMOSDR_LIBVER - << ") supported device types:" << std::endl; - std::cerr << " " << std::flush; + std::cerr << "gr-osmosdr " + << GR_OSMOSDR_VERSION " (" GR_OSMOSDR_LIBVER ") " + << "gnuradio " << gr_version() << std::endl; + std::cerr << "built-in device types: "; BOOST_FOREACH(std::string dev_type, dev_types) std::cerr << dev_type << " "; std::cerr << std::endl << std::flush; |