aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/UHDDevice.cpp
diff options
context:
space:
mode:
authorkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2011-11-28 06:26:08 +0000
committerkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2011-11-28 06:26:08 +0000
commite33203208beb300fa9d0ff2783f5d5836b9c9418 (patch)
tree44b1b69e18da85741f0e214c8303d62dfac7d0bf /Transceiver52M/UHDDevice.cpp
parent4403d4ff7cb453451e792be388b15f7081545d67 (diff)
transceiver52M: bump critial errors to ALERT level
Device errors regarding properties such as sample rate or frequency tuning are almost always fatal and lead to the common error "assuming TRX is dead". Make sure that these errors are clearly presented to the user. Signed-off-by: Thomas Tsou <ttsou@vt.edu> git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2700 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'Transceiver52M/UHDDevice.cpp')
-rw-r--r--Transceiver52M/UHDDevice.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp
index 89f1231..3bcf2de 100644
--- a/Transceiver52M/UHDDevice.cpp
+++ b/Transceiver52M/UHDDevice.cpp
@@ -341,7 +341,8 @@ double uhd_device::set_rates(double rate)
actual_clk_rt = usrp_dev->get_master_clock_rate();
if (actual_clk_rt != master_clk_rt) {
- LOG(ERR) << "Failed to set master clock rate";
+ LOG(ALERT) << "Failed to set master clock rate";
+ LOG(ALERT) << "Actual clock rate " << actual_clk_rt;
return -1.0;
}
#endif
@@ -352,11 +353,11 @@ double uhd_device::set_rates(double rate)
actual_rt = usrp_dev->get_tx_rate();
if (actual_rt != rate) {
- LOG(ERR) << "Actual sample rate differs from desired rate";
+ LOG(ALERT) << "Actual sample rate differs from desired rate";
return -1.0;
}
if (usrp_dev->get_rx_rate() != actual_rt) {
- LOG(ERR) << "Transmit and receive sample rates do not match";
+ LOG(ALERT) << "Transmit and receive sample rates do not match";
return -1.0;
}
@@ -643,7 +644,7 @@ int uhd_device::readSamples(short *buf, int len, bool *overrun,
rc = check_rx_md_err(metadata, num_smpls);
switch (rc) {
case ERROR_UNRECOVERABLE:
- LOG(ERR) << "UHD: Unrecoverable error, exiting.";
+ LOG(ALERT) << "Unrecoverable error, exiting...";
exit(-1);
case ERROR_TIMING:
restart(prev_ts);