Make timing report channel size message more useful.
In a simulation, it is very handy to know which application is causing
the problem. So, add the name to the log message.
Change-Id: Ib414fced3eab6e42d341fc6656a7b05084a4ec32
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/events/event_loop.cc b/aos/events/event_loop.cc
index e84763e..072630f 100644
--- a/aos/events/event_loop.cc
+++ b/aos/events/event_loop.cc
@@ -298,7 +298,7 @@
// of the buffer. We only have to care because we are using this in a very
// raw fashion.
CHECK_LE(timing_report_.span().size(), timing_report_sender_->size())
- << ": Timing report bigger than the sender size.";
+ << ": Timing report bigger than the sender size for " << name() << ".";
std::copy(timing_report_.span().data(),
timing_report_.span().data() + timing_report_.span().size(),
reinterpret_cast<uint8_t *>(timing_report_sender_->data()) +