From 62c92805903b992493f7e435823011f7b11dcc34 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 13 Jan 2020 14:35:06 +0100 Subject: lms: Improve smpl_buf error logging Change-Id: I511abe2c333443b978a3767bd7b7e320e07c4930 --- Transceiver52M/device/lms/LMSDevice.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Transceiver52M') 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; } } -- cgit v1.2.3