print gnuradio version information in startup message

This commit is contained in:
Dimitri Stolnikov 2013-03-17 10:31:51 +01:00
parent 901dca8135
commit fb79836158
1 changed files with 5 additions and 4 deletions

View File

@ -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;