Extra logging in TransferListener

This commit is contained in:
Pavel Kirienko
2014-02-14 19:34:34 +04:00
parent 20c828912f
commit e7ce9fb586
2 changed files with 2 additions and 1 deletions
@@ -160,6 +160,7 @@ class TransferListener : public TransferListenerBase, Noncopyable
{
if (value.isTimedOut(ts_monotonic_))
{
UAVCAN_TRACE("TransferListener", "Timed out receiver: %s", key.toString().c_str());
/*
* TransferReceivers do not own their buffers - this helps the Map<> container to copy them
* around quickly and safely (using default assignment operator). Downside is that we need to
+1 -1
View File
@@ -16,7 +16,7 @@ namespace uavcan
std::string TransferBufferManagerKey::toString() const
{
char buf[24];
std::snprintf(buf, sizeof(buf), "nid:%i tt:%i", int(node_id_), int(transfer_type_));
std::snprintf(buf, sizeof(buf), "nid=%i tt=%i", int(node_id_), int(transfer_type_));
return std::string(buf);
}