Improve some messaging. A data record is always pushed, even if it's empty (to

help debugging).
This commit is contained in:
David Given
2020-01-26 17:49:12 +01:00
parent 0c48897814
commit 6af80d1e5e
3 changed files with 7 additions and 8 deletions

View File

@@ -227,8 +227,8 @@ void readDiskCommand(AbstractDecoder& decoder)
std::cout << "\nRaw (undecoded) records follow:\n\n";
for (auto& record : track->rawrecords)
{
std::cout << fmt::format("I+{:.2f}us", record.position.ns() / 1000.0)
<< std::endl;
std::cout << fmt::format("I+{:.2f}us with {:.2f}us clock\n",
record.position.ns() / 1000.0, record.clock / 1000.0);
hexdump(std::cout, record.data);
std::cout << std::endl;
}