From 391b377668e99e8a2701ca9363535645b999c305 Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Mon, 21 Mar 2011 14:58:17 -0400 Subject: [PATCH] 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 --- public-trunk/Transceiver/UHDDevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public-trunk/Transceiver/UHDDevice.cpp b/public-trunk/Transceiver/UHDDevice.cpp index 79a883a..998a02f 100644 --- a/public-trunk/Transceiver/UHDDevice.cpp +++ b/public-trunk/Transceiver/UHDDevice.cpp @@ -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(); }