aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-04-30 18:13:23 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-05-03 13:50:50 +0200
commit3e9179a55e9995c23b1466788ba6fc7b43174a54 (patch)
treee4636dc3efcdde357e9d3fe77ac9ecfcdf752af0
parent87b7d098e517470fec53ac13a28d1d0fa7b16bb4 (diff)
uhd: smpl_buf: Use TIMESTAMP type in str_status
Other related functions use "TIMESTAMP timestamp" so let's use same stuff in that function. Change-Id: I016b1a7f8db379caebc1409ca11e5ae8b759d2d4
-rw-r--r--Transceiver52M/device/uhd/smpl_buf.cpp4
-rw-r--r--Transceiver52M/device/uhd/smpl_buf.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/Transceiver52M/device/uhd/smpl_buf.cpp b/Transceiver52M/device/uhd/smpl_buf.cpp
index ae21369..f3fc323 100644
--- a/Transceiver52M/device/uhd/smpl_buf.cpp
+++ b/Transceiver52M/device/uhd/smpl_buf.cpp
@@ -138,11 +138,11 @@ ssize_t smpl_buf::write(void *buf, size_t len, TIMESTAMP timestamp)
return len;
}
-std::string smpl_buf::str_status(size_t ts) const
+std::string smpl_buf::str_status(TIMESTAMP timestamp) const
{
std::ostringstream ost("Sample buffer: ");
- ost << "timestamp = " << ts;
+ ost << "timestamp = " << timestamp;
ost << ", length = " << buf_len;
ost << ", time_start = " << time_start;
ost << ", time_end = " << time_end;
diff --git a/Transceiver52M/device/uhd/smpl_buf.h b/Transceiver52M/device/uhd/smpl_buf.h
index cb231d3..e58eb38 100644
--- a/Transceiver52M/device/uhd/smpl_buf.h
+++ b/Transceiver52M/device/uhd/smpl_buf.h
@@ -61,7 +61,7 @@ public:
/** Buffer status string
@return a formatted string describing internal buffer state
*/
- std::string str_status(size_t ts) const;
+ std::string str_status(TIMESTAMP timestamp) const;
/** Formatted error string
@param code an error code