]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONRawStreamTrackerHP.cxx
Extracting Branch and Revision from Git.
[u/mrichter/AliRoot.git] / MUON / AliMUONRawStreamTrackerHP.cxx
index bd941f3fa70fb890b3f8dd10d1c1efc82de4f210..73fa28b13a529f9b9ff6fd3ff53833f51e8fbed6 100644 (file)
@@ -713,7 +713,7 @@ void AliMUONRawStreamTrackerHP::AliDecoderEventHandler::OnError(
                // 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()),
@@ -797,7 +797,7 @@ void AliMUONRawStreamTrackerHP::AliDecoderEventHandler::OnError(
                        // 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",
@@ -850,7 +850,7 @@ void AliMUONRawStreamTrackerHP::AliDecoderEventHandler::OnError(
                        break;
                case kMediumErrorDetail:
                        message = Form(
-                               "%s (At byte %d)",
+                               "%s (At byte %lu)",
                                ErrorCodeToMessage(error),
                                (unsigned long)location - (unsigned long)fBufferStart + sizeof(AliRawDataHeader)
                        );