Revision 7f01386f host/lib/usrp/dboard_manager.cpp

b/host/lib/usrp/dboard_manager.cpp
18 18
#include "dboard_ctor_args.hpp"
19 19
#include <uhd/usrp/dboard_manager.hpp>
20 20
#include <uhd/usrp/subdev_props.hpp>
21
#include <uhd/utils/warning.hpp>
21
#include <uhd/utils/msg.hpp>
22 22
#include <uhd/utils/log.hpp>
23 23
#include <uhd/utils/static.hpp>
24 24
#include <uhd/exception.hpp>
......
240 240
        this->init(rx_dboard_id, tx_dboard_id);
241 241
    }
242 242
    catch(const std::exception &e){
243
        uhd::warning::post(e.what());
243
        UHD_MSG(error) << "The daughterboard manager encountered a recoverable error in init" << std::endl << e.what();
244 244
        this->init(dboard_id_t::none(), dboard_id_t::none());
245 245
    }
246 246
}
......
264 264

  
265 265
    //warn for invalid dboard id xcvr combinations
266 266
    if (not xcvr_dboard_key.is_xcvr() and (rx_dboard_key.is_xcvr() or tx_dboard_key.is_xcvr())){
267
        uhd::warning::post(str(boost::format(
267
        UHD_MSG(warning) << boost::format(
268 268
            "Unknown transceiver board ID combination.\n"
269 269
            "Is your daughter-board mounted properly?\n"
270 270
            "RX dboard ID: %s\n"
271 271
            "TX dboard ID: %s\n"
272
        ) % rx_dboard_id.to_pp_string() % tx_dboard_id.to_pp_string()));
272
        ) % rx_dboard_id.to_pp_string() % tx_dboard_id.to_pp_string();
273 273
    }
274 274

  
275 275
    //initialize the gpio pins before creating subdevs

Also available in: Unified diff