From 6c12d59ff8bc956e885d5f29d374efc134b0ac10 Mon Sep 17 00:00:00 2001 From: cvetan Date: Mon, 12 Jul 2010 14:06:37 +0000 Subject: [PATCH] Compilation warnings fixed. --- RAW/AliAltroRawStream.cxx | 2 +- RAW/AliAltroRawStreamV3.cxx | 2 +- RAW/AliCaloAltroMapping.cxx | 2 +- RAW/AliMDC.cxx | 2 +- RAW/AliRawReaderDateV3.cxx | 8 ++++---- RAW/AliRawReaderRoot.cxx | 8 ++++---- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/RAW/AliAltroRawStream.cxx b/RAW/AliAltroRawStream.cxx index 581712a362a..2b5d73357ec 100644 --- a/RAW/AliAltroRawStream.cxx +++ b/RAW/AliAltroRawStream.cxx @@ -683,7 +683,7 @@ Double_t AliAltroRawStream::GetL1Phase() const Double_t tSample = GetTSample(); if (phase >= tSample) { - AliWarning(Form("Invalid L1 trigger phase (%f >= %d) !", + AliWarning(Form("Invalid L1 trigger phase (%f >= %f) !", phase,tSample)); phase = 0.; } diff --git a/RAW/AliAltroRawStreamV3.cxx b/RAW/AliAltroRawStreamV3.cxx index 145bab80f13..fb9845947a4 100644 --- a/RAW/AliAltroRawStreamV3.cxx +++ b/RAW/AliAltroRawStreamV3.cxx @@ -672,7 +672,7 @@ Double_t AliAltroRawStreamV3::GetL1Phase() const Double_t tSample = GetTSample(); if (phase >= tSample) { - AliWarning(Form("Invalid L1 trigger phase (%f >= %d) !", + AliWarning(Form("Invalid L1 trigger phase (%f >= %f) !", phase,tSample)); phase = 0.; } diff --git a/RAW/AliCaloAltroMapping.cxx b/RAW/AliCaloAltroMapping.cxx index 4d3a9880149..bd6e4e8d3db 100644 --- a/RAW/AliCaloAltroMapping.cxx +++ b/RAW/AliCaloAltroMapping.cxx @@ -179,7 +179,7 @@ Int_t AliCaloAltroMapping::GetHWAddress(Int_t row, Int_t col, Int_t caloFlag) return -1; } if (col < fMinCol || col > fMaxCol) { - AliWarning(Form("Index of column (%d) outside the range (0 -> %d) !",col,fMinCol,fMaxCol)); + AliWarning(Form("Index of column (%d) outside the range (%d -> %d) !",col,fMinCol,fMaxCol)); return -1; } if (caloFlag < 0 || caloFlag > 3) { diff --git a/RAW/AliMDC.cxx b/RAW/AliMDC.cxx index 2294e568fa2..a4374b53c02 100644 --- a/RAW/AliMDC.cxx +++ b/RAW/AliMDC.cxx @@ -248,7 +248,7 @@ Int_t AliMDC::ProcessEvent(void* event, Bool_t isIovecArray) Long64_t currentFileSize = GetTotalSize(); // AliDebug(1,Form("current file size is %lld bytes",currentFileSize)); if(currentFileSize > kFileSizeErrorLevel) { - Error("ProcessEvent", "file size (%lu) exceeds the limit " + Error("ProcessEvent", "file size (%lld) exceeds the limit " , currentFileSize); return kErrFileSize; } diff --git a/RAW/AliRawReaderDateV3.cxx b/RAW/AliRawReaderDateV3.cxx index 1523fe64ddf..4553a27ca56 100644 --- a/RAW/AliRawReaderDateV3.cxx +++ b/RAW/AliRawReaderDateV3.cxx @@ -306,7 +306,7 @@ Bool_t AliRawReaderDateV3::ReadHeader() // check that there are enough bytes left for the data header if (fPosition + sizeof(AliRawDataHeader) > fEnd) { Error("ReadHeader", "could not read data header data!"); - Warning("ReadHeader", "skipping %d bytes\n" + Warning("ReadHeader", "skipping %ld bytes\n" " run: %d event: %d\n", fEnd - fPosition, fSubEvent->runNb, fSubEvent->nbInRun); fCount = 0; @@ -320,7 +320,7 @@ Bool_t AliRawReaderDateV3::ReadHeader() if ((fPosition + fHeader->fSize) != fEnd) { if (fHeader->fSize != 0xFFFFFFFF) Warning("ReadHeader", - "raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !", + "raw data size found in the header is wrong (%d != %ld)! Using the equipment size instead !", fHeader->fSize, fEnd - fPosition); fHeader->fSize = fEnd - fPosition; } @@ -333,7 +333,7 @@ Bool_t AliRawReaderDateV3::ReadHeader() // check consistency of data size in the header and in the sub event if (fPosition + fCount > fEnd) { Error("ReadHeader", "size in data header exceeds event size!"); - Warning("ReadHeader", "skipping %d bytes\n" + Warning("ReadHeader", "skipping %ld bytes\n" " run: %d event: %d\n", fEnd - fPosition, fSubEvent->runNb, fSubEvent->nbInRun); fCount = 0; @@ -491,7 +491,7 @@ Int_t AliRawReaderDateV3::CheckData() const if ((position + header->fSize) != end) { if (header->fSize != 0xFFFFFFFF) Warning("ReadHeader", - "raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !", + "raw data size found in the header is wrong (%d != %ld)! Using the equipment size instead !", header->fSize, end - position); header->fSize = end - position; result |= kErrSize; diff --git a/RAW/AliRawReaderRoot.cxx b/RAW/AliRawReaderRoot.cxx index 9b840f0e72e..1fde2b80183 100644 --- a/RAW/AliRawReaderRoot.cxx +++ b/RAW/AliRawReaderRoot.cxx @@ -428,7 +428,7 @@ Bool_t AliRawReaderRoot::ReadHeader() // check that there are enough bytes left for the data header if (fPosition + sizeof(AliRawDataHeader) > fEnd) { Error("ReadHeader", "could not read data header!"); - Warning("ReadHeader", "skipping %d bytes", fEnd - fPosition); + Warning("ReadHeader", "skipping %ld bytes", fEnd - fPosition); fEquipment->GetEquipmentHeader()->Dump(); fCount = 0; fPosition = fEnd; @@ -445,7 +445,7 @@ Bool_t AliRawReaderRoot::ReadHeader() if ((fPosition + fHeader->fSize) != fEnd) { if (fHeader->fSize != 0xFFFFFFFF) Warning("ReadHeader", - "Equipment %d : raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !", + "Equipment %d : raw data size found in the header is wrong (%d != %ld)! Using the equipment size instead !", fEquipment->GetEquipmentHeader()->GetId(),fHeader->fSize, fEnd - fPosition); fHeader->fSize = fEnd - fPosition; } @@ -458,7 +458,7 @@ Bool_t AliRawReaderRoot::ReadHeader() // check consistency of data size in the header and in the sub event if (fPosition + fCount > fEnd) { Error("ReadHeader", "size in data header exceeds event size!"); - Warning("ReadHeader", "skipping %d bytes", fEnd - fPosition); + Warning("ReadHeader", "skipping %ld bytes", fEnd - fPosition); fEquipment->GetEquipmentHeader()->Dump(); fCount = 0; fPosition = fEnd; @@ -649,7 +649,7 @@ Int_t AliRawReaderRoot::CheckData() const if ((position + header->fSize) != end) { if (header->fSize != 0xFFFFFFFF) Warning("ReadHeader", - "Equipment %d : raw data size found in the header is wrong (%d != %d)! Using the equipment size instead !", + "Equipment %d : raw data size found in the header is wrong (%d != %ld)! Using the equipment size instead !", equipment->GetEquipmentHeader()->GetId(),header->fSize, end - position); header->fSize = end - position; result |= kErrSize; -- 2.43.0