mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-12 19:30:35 +08:00
Extra logging in TransferListener
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user