laforge
/
openbts-osmo
Archived
1
0
Fork 0

uhd: log timestamp on receive error

Currently, upon receiving an unexpected timestamp, the sample
buffer will error and log its internal state. The errant
timestamp is not logged though. This patch fixes that.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
This commit is contained in:
Thomas Tsou 2011-03-21 14:58:17 -04:00
parent d64ddbc0d1
commit 391b377668
1 changed files with 3 additions and 0 deletions

View File

@ -494,6 +494,9 @@ std::string UHDDevice::stringCode(uhd::rx_metadata_t metadata)
ost << "Unknown error " << metadata.error_code;
}
if (metadata.has_time_spec)
ost << " at " << metadata.time_spec.get_real_secs() << " sec.";
return ost.str();
}