summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-26 14:14:01 -0700
committerJosh Blum <josh@joshknows.com>2010-10-26 14:14:01 -0700
commitcea3d05095202413be12cd4792ab9f781cbccef7 (patch)
tree0b588edfcf3f1173abfcf9c656fac3e824e2d532 /host/lib/usrp/usrp1
parent0168bff835371140c0d75cc381e3228f8093fe70 (diff)
downloaduhd-cea3d05095202413be12cd4792ab9f781cbccef7.tar.gz
uhd-cea3d05095202413be12cd4792ab9f781cbccef7.tar.bz2
uhd-cea3d05095202413be12cd4792ab9f781cbccef7.zip
uhd: replaced print warning with a post warning call and registry
renamed print warning calls in the implementation fixed issue with dict::pop so it now works even if the value is not comparable
Diffstat (limited to 'host/lib/usrp/usrp1')
-rw-r--r--host/lib/usrp/usrp1/mboard_impl.cpp2
-rw-r--r--host/lib/usrp/usrp1/usrp1_impl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp1/mboard_impl.cpp b/host/lib/usrp/usrp1/mboard_impl.cpp
index fe3774eb4..669b20efa 100644
--- a/host/lib/usrp/usrp1/mboard_impl.cpp
+++ b/host/lib/usrp/usrp1/mboard_impl.cpp
@@ -98,7 +98,7 @@ static boost::uint32_t calc_rx_mux(
// for all quadrature sources: Z = 0
// for mixed sources: warning + Z = 0
int Z = (num_quads > 0)? 0 : 1;
- if (num_quads != 0 and num_reals != 0) uhd::print_warning(
+ if (num_quads != 0 and num_reals != 0) uhd::warning::post(
"Mixing real and quadrature rx subdevices is not supported.\n"
"The Q input to the real source(s) will be non-zero.\n"
);
diff --git a/host/lib/usrp/usrp1/usrp1_impl.cpp b/host/lib/usrp/usrp1/usrp1_impl.cpp
index 276ca86f6..314384e72 100644
--- a/host/lib/usrp/usrp1/usrp1_impl.cpp
+++ b/host/lib/usrp/usrp1/usrp1_impl.cpp
@@ -64,7 +64,7 @@ static device_addrs_t usrp1_find(const device_addr_t &hint)
);
}
catch(...){
- uhd::print_warning(
+ uhd::warning::post(
"Could not locate USRP1 firmware.\n"
"Please install the images package.\n"
);