Change in osmo-trx[master]: uhd: smpl_buf: Use TIMESTAMP type in str_status

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Tue Apr 30 21:50:13 UTC 2019


Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/13828


Change subject: uhd: smpl_buf: Use TIMESTAMP type in str_status
......................................................................

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
---
M Transceiver52M/device/uhd/smpl_buf.cpp
M Transceiver52M/device/uhd/smpl_buf.h
2 files changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/28/13828/1

diff --git a/Transceiver52M/device/uhd/smpl_buf.cpp b/Transceiver52M/device/uhd/smpl_buf.cpp
index 54ac10e..7f2f820 100644
--- a/Transceiver52M/device/uhd/smpl_buf.cpp
+++ b/Transceiver52M/device/uhd/smpl_buf.cpp
@@ -114,11 +114,11 @@
 		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 95df825..067ac1a 100644
--- a/Transceiver52M/device/uhd/smpl_buf.h
+++ b/Transceiver52M/device/uhd/smpl_buf.h
@@ -52,7 +52,7 @@
 	/** 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

-- 
To view, visit https://gerrit.osmocom.org/13828
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I016b1a7f8db379caebc1409ca11e5ae8b759d2d4
Gerrit-Change-Number: 13828
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190430/ea20df3b/attachment.html>


More information about the gerrit-log mailing list