diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-01-13 14:35:06 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-01-13 14:35:06 +0100 |
commit | 62c92805903b992493f7e435823011f7b11dcc34 (patch) | |
tree | 0c285a7402f551dd7fe74c8067cadc94e5ebe0c4 | |
parent | 1421adbc61b4525b41a07bc14c47cb47f5f030f0 (diff) |
lms: Improve smpl_buf error logging
Change-Id: I511abe2c333443b978a3767bd7b7e320e07c4930
-rw-r--r-- | Transceiver52M/device/lms/LMSDevice.cpp | 5 |
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; } } |