aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-04-30 18:19:54 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-05-03 13:50:50 +0200
commitac927b2690034fbf711aa2739cf9acdde0b817b6 (patch)
tree5871d7be42e4c0afb75ac2ad01345d87d0437907 /Transceiver52M
parent3e9179a55e9995c23b1466788ba6fc7b43174a54 (diff)
cosmetic: uhd: Use loglevel ERROR instead of ERR
ERR is osmo-trx legacy level, which actually converts to osmocom's ERROR, so let's use that one directly. Change-Id: I82f6f89a725bea7f7acfa455c20cf922cc3f8a00
Diffstat (limited to 'Transceiver52M')
-rw-r--r--Transceiver52M/device/uhd/UHDDevice.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/Transceiver52M/device/uhd/UHDDevice.cpp b/Transceiver52M/device/uhd/UHDDevice.cpp
index 40ef2a0..34ffd57 100644
--- a/Transceiver52M/device/uhd/UHDDevice.cpp
+++ b/Transceiver52M/device/uhd/UHDDevice.cpp
@@ -149,7 +149,7 @@ void uhd_msg_handler(uhd::msg::type_t type, const std::string &msg)
LOGC(DDEV, WARNING) << msg;
break;
case uhd::msg::error:
- LOGC(DDEV, ERR) << msg;
+ LOGC(DDEV, ERROR) << msg;
break;
case uhd::msg::fastpath:
break;
@@ -601,7 +601,7 @@ bool uhd_device::start()
LOGC(DDEV, INFO) << "Starting USRP...";
if (started) {
- LOGC(DDEV, ERR) << "Device already started";
+ LOGC(DDEV, ERROR) << "Device already started";
return false;
}
@@ -652,7 +652,7 @@ void uhd_device::setPriority(float prio)
int uhd_device::check_rx_md_err(uhd::rx_metadata_t &md, ssize_t num_smpls)
{
if (!num_smpls) {
- LOGC(DDEV, ERR) << str_code(md);
+ LOGC(DDEV, ERROR) << str_code(md);
switch (md.error_code) {
case uhd::rx_metadata_t::ERROR_CODE_TIMEOUT:
@@ -715,8 +715,8 @@ int uhd_device::readSamples(std::vector<short *> &bufs, int len, bool *overrun,
// Check that timestamp is valid
rc = rx_buffers[0]->avail_smpls(timestamp);
if (rc < 0) {
- LOGC(DDEV, ERR) << rx_buffers[0]->str_code(rc);
- LOGC(DDEV, ERR) << rx_buffers[0]->str_status(timestamp);
+ LOGC(DDEV, ERROR) << rx_buffers[0]->str_code(rc);
+ LOGC(DDEV, ERROR) << rx_buffers[0]->str_status(timestamp);
return 0;
}
@@ -763,8 +763,8 @@ int uhd_device::readSamples(std::vector<short *> &bufs, int len, bool *overrun,
// Continue on local overrun, exit on other errors
if ((rc < 0)) {
- LOGC(DDEV, ERR) << rx_buffers[i]->str_code(rc);
- LOGC(DDEV, ERR) << rx_buffers[i]->str_status(timestamp);
+ LOGC(DDEV, ERROR) << rx_buffers[i]->str_code(rc);
+ LOGC(DDEV, ERROR) << rx_buffers[i]->str_status(timestamp);
if (rc != smpl_buf::ERROR_OVERFLOW)
return 0;
}
@@ -775,8 +775,8 @@ int uhd_device::readSamples(std::vector<short *> &bufs, int len, bool *overrun,
for (size_t i = 0; i < rx_buffers.size(); i++) {
rc = rx_buffers[i]->read(bufs[i], len, timestamp);
if ((rc < 0) || (rc != len)) {
- LOGC(DDEV, ERR) << rx_buffers[i]->str_code(rc);
- LOGC(DDEV, ERR) << rx_buffers[i]->str_status(timestamp);
+ LOGC(DDEV, ERROR) << rx_buffers[i]->str_code(rc);
+ LOGC(DDEV, ERROR) << rx_buffers[i]->str_status(timestamp);
return 0;
}
}
@@ -797,7 +797,7 @@ int uhd_device::writeSamples(std::vector<short *> &bufs, int len, bool *underrun
// No control packets
if (isControl) {
- LOGC(DDEV, ERR) << "Control packets not supported";
+ LOGC(DDEV, ERROR) << "Control packets not supported";
return 0;
}
@@ -1110,7 +1110,7 @@ bool uhd_device::recv_async_msg()
if ((md.event_code != uhd::async_metadata_t::EVENT_CODE_UNDERFLOW) &&
(md.event_code != uhd::async_metadata_t::EVENT_CODE_TIME_ERROR)) {
- LOGC(DDEV, ERR) << str_code(md);
+ LOGC(DDEV, ERROR) << str_code(md);
}
}