aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/device/common/smpl_buf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Transceiver52M/device/common/smpl_buf.cpp')
-rw-r--r--Transceiver52M/device/common/smpl_buf.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Transceiver52M/device/common/smpl_buf.cpp b/Transceiver52M/device/common/smpl_buf.cpp
index 33161bc..ceca000 100644
--- a/Transceiver52M/device/common/smpl_buf.cpp
+++ b/Transceiver52M/device/common/smpl_buf.cpp
@@ -154,7 +154,7 @@ std::string smpl_buf::str_status(TIMESTAMP timestamp) const
return ost.str();
}
-std::string smpl_buf::str_code(ssize_t code)
+std::string smpl_buf::str_code(int code)
{
switch (code) {
case ERROR_TIMESTAMP:
@@ -166,6 +166,8 @@ std::string smpl_buf::str_code(ssize_t code)
case ERROR_OVERFLOW:
return "Sample buffer: Overrun";
default:
- return "Sample buffer: Unknown error";
+ std::stringstream ss;
+ ss << "Sample buffer: Unknown error " << code;
+ return ss.str();
}
}