aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-01-13 14:35:06 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-01-13 14:35:06 +0100
commit62c92805903b992493f7e435823011f7b11dcc34 (patch)
tree0c285a7402f551dd7fe74c8067cadc94e5ebe0c4 /Transceiver52M
parent1421adbc61b4525b41a07bc14c47cb47f5f030f0 (diff)
lms: Improve smpl_buf error logging
Diffstat (limited to 'Transceiver52M')
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index b8893fb..3a10983 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -708,8 +708,9 @@ int LMSDevice::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, ERROR) << rx_buffers[i]->str_code(rc);
- LOGC(DDEV, ERROR) << rx_buffers[i]->str_status(timestamp);
+ LOGCHAN(i, DDEV, ERROR) << rx_buffers[i]->str_code(rc) << ". "
+ << rx_buffers[i]->str_status(timestamp)
+ << ", (len=" << len << ")";
return 0;
}
}