From b431866a5ec00753b40823e3172a8388582701c4 Mon Sep 17 00:00:00 2001 From: trungnob Date: Fri, 19 May 2017 17:43:26 -0700 Subject: log: Remove logging out of any UHD_STATIC_BLOCK. Window DLL loading is causing deadlock due to thread creation and synchronization of logging system; therefore, we want to remove it for now. --- host/lib/device.cpp | 2 +- host/lib/image_loader.cpp | 4 ++-- host/lib/usrp/dboard_manager.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/host/lib/device.cpp b/host/lib/device.cpp index ace0a0bd6..f8b2fc498 100644 --- a/host/lib/device.cpp +++ b/host/lib/device.cpp @@ -73,7 +73,7 @@ void device::register_device( const make_t &make, const device_filter_t filter ){ - UHD_LOGGER_TRACE("UHD") << "registering device"; + // UHD_LOGGER_TRACE("UHD") << "registering device"; get_dev_fcn_regs().push_back(dev_fcn_reg_t(find, make, filter)); } diff --git a/host/lib/image_loader.cpp b/host/lib/image_loader.cpp index b05664dd0..8b56d607e 100644 --- a/host/lib/image_loader.cpp +++ b/host/lib/image_loader.cpp @@ -46,8 +46,8 @@ UHD_SINGLETON_FCN(string_map_t, get_recovery_strings); void uhd::image_loader::register_image_loader(const std::string &device_type, const loader_fcn_t &loader_fcn, const std::string &recovery_instructions){ - UHD_LOGGER_TRACE("UHD") << "Registering image loader and recovery instructions for " - << device_type; + // UHD_LOGGER_TRACE("UHD") << "Registering image loader and recovery instructions for " + // << device_type; get_image_loaders().insert(loader_fcn_pair_t(device_type, loader_fcn)); get_recovery_strings().insert(string_pair_t(device_type, recovery_instructions)); diff --git a/host/lib/usrp/dboard_manager.cpp b/host/lib/usrp/dboard_manager.cpp index 532f5593b..87b0c9f9c 100644 --- a/host/lib/usrp/dboard_manager.cpp +++ b/host/lib/usrp/dboard_manager.cpp @@ -96,7 +96,7 @@ static void register_dboard_key( const std::vector &subdev_names, dboard_manager::dboard_ctor_t db_container_ctor ){ - UHD_LOGGER_TRACE("DBMGR") << "registering: " << name; + // UHD_LOGGER_TRACE("DBMGR") << "registering: " << name; if (get_id_to_args_map().has_key(dboard_key)){ if (dboard_key.is_xcvr()) throw uhd::key_error(str(boost::format( -- cgit v1.2.3