Skip to content

Commit 1441d2c

Browse files
committed
add debug logs
1 parent fe359e3 commit 1441d2c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Framework/Core/src/DataProcessingDevice.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,6 +1887,11 @@ void DataProcessingDevice::handleData(ServiceRegistryRef ref, InputChannelInfo&
18871887
continue;
18881888
}
18891889
if (!dh) {
1890+
auto* b = reinterpret_cast<const uint32_t*>(headerData);
1891+
LOGP(error, "BADHDR ch={} pi={}/{} hdrSize={} payloadSize={} firstWord={:#010x} magicExpected={:#010x}",
1892+
info.channel ? info.channel->GetName() : "?", pi, parts.Size(),
1893+
parts.At(pi)->GetSize(), parts.At(pi + 1)->GetSize(),
1894+
b ? *b : 0u, o2::header::BaseHeader::sMagicString);
18901895
insertInputInfo(pi, 0, InputType::Invalid, info.id);
18911896
O2_SIGNPOST_EVENT_EMIT_ERROR(device, cid, "handle_data", "Header is not a DataHeader?");
18921897
continue;

0 commit comments

Comments
 (0)