Skip to content

Commit 97e411a

Browse files
committed
Fix: missing init RawReaderBase
1 parent 402a580 commit 97e411a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Detectors/FIT/raw/include/FITRaw/RawReaderBase.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ class RawReaderBase
4646
{
4747
size_t srcPos = 0;
4848
while (srcPos < binaryPayload.size()) { //checking element
49-
DataBlockType dataBlock;
49+
DataBlockType dataBlock{};
5050
dataBlock.decodeBlock(binaryPayload, srcPos);
5151
srcPos += dataBlock.mSize;
5252
if (dataBlock.isCorrect()) {
5353
vecDataBlocks.push_back(dataBlock); //change to in-place construction? TODO
5454
} else {
55-
LOG(INFO) << "WARNING! INCORRECT DATA BLOCK!";
55+
LOG(WARNING) << "INCORRECT DATA BLOCK! Byte position: " << srcPos - dataBlock.mSize << " | " << binaryPayload.size() << " | " << dataBlock.mSize;
56+
dataBlock.print();
5657
}
5758
}
5859
return srcPos;
@@ -93,4 +94,4 @@ class RawReaderBase
9394
} // namespace fit
9495
} // namespace o2
9596

96-
#endif
97+
#endif

0 commit comments

Comments
 (0)