// We subtract 1 from the current numbers of blocks, DSPs
// and bus patches to get the iBlock, iDsp and iBus indices.
detail = Form(
- "At byte %d in DDL %d, event %d, iBlock %d, iDsp %d [DSP ID: %d (0x%X)],"
+ "At byte %lu in DDL %d, event %d, iBlock %d, iDsp %d [DSP ID: %d (0x%X)],"
" iBus %d [bus patch ID: %d (0x%X)].",
(unsigned long)location - (unsigned long)fBufferStart + sizeof(AliRawDataHeader),
AliDAQ::DdlID("MUONTRK", fRawStream->GetDDL()),
// fCurrentBusPatch->GetData() returns a pointer to the start of
// bus patches data, so the difference divided by 4 gives the 32
// bit word number.
- word = ((unsigned long)location - (unsigned long)fCurrentBusPatch->GetData())
+ word = (reinterpret_cast<size_t>(location) - reinterpret_cast<size_t>(fCurrentBusPatch->GetData()))
/ sizeof(UInt_t);
message = Form(
"Parity error in word %d for manuId %d and channel %d in buspatch %d. %s",
break;
case kMediumErrorDetail:
message = Form(
- "%s (At byte %d)",
+ "%s (At byte %lu)",
ErrorCodeToMessage(error),
(unsigned long)location - (unsigned long)fBufferStart + sizeof(AliRawDataHeader)
);