Byte order fix in logging

This commit is contained in:
Pavel Kirienko
2015-05-10 20:28:28 +03:00
parent 526b9371e4
commit a6b0a256fb
2 changed files with 2 additions and 2 deletions
@@ -200,7 +200,7 @@ class AllocationRequestManager
uint64_t event_agrument = 0;
for (uint8_t i = 0; i < 8; i++)
{
event_agrument |= static_cast<uint64_t>(unique_id[i]) << (i * 8U);
event_agrument |= static_cast<uint64_t>(unique_id[i]) << (56U - i * 8U);
}
trace(TraceAllocationExchangeComplete, static_cast<int64_t>(event_agrument));
}
@@ -63,7 +63,7 @@ enum TraceCode
TraceAllocationUnexpectedStage, // stage number in the request - 1, 2, or 3
// 35
TraceAllocationRequestAccepted, // number of bytes of unique ID after request
TraceAllocationExchangeComplete, // first 8 bytes of unique ID interpreted as signed 64 bit little endian
TraceAllocationExchangeComplete, // first 8 bytes of unique ID interpreted as signed 64 bit big endian
TraceAllocationResponse, // allocated node ID
Trace11,
Trace12,