]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing compiler warnings from Form(),
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Jul 2010 09:33:10 +0000 (09:33 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Jul 2010 09:33:10 +0000 (09:33 +0000)
now properky checked with Root trunk.

24 files changed:
MUON/AliMUONCheck.cxx
MUON/AliMUONCluster.cxx
MUON/AliMUONDEPainter.cxx
MUON/AliMUONDigitMaker.cxx
MUON/AliMUONGainSubprocessor.cxx
MUON/AliMUONGeometryMisAligner.cxx
MUON/AliMUONGlobalCrateConfig.cxx
MUON/AliMUONLocalTrigger.cxx
MUON/AliMUONOccupancySubprocessor.cxx
MUON/AliMUONPainterMasterFrame.cxx
MUON/AliMUONPainterMatrixFrame.cxx
MUON/AliMUONPainterRegistry.cxx
MUON/AliMUONPedestalSubprocessor.cxx
MUON/AliMUONRawStreamTrackerHP.cxx
MUON/AliMUONRawStreamTriggerHP.cxx
MUON/AliMUONSurveyObj.cxx
MUON/AliMUONTrackParam.cxx
MUON/AliMUONTrackerData.cxx
MUON/AliMUONTriggerIO.cxx
MUON/AliMUONTriggerSubprocessor.cxx
MUON/AliMUONTriggerTrackToTrackerClusters.cxx
MUON/mapping/AliMpConnection.cxx
MUON/mapping/AliMpDEVisu.cxx
MUON/mapping/AliMpPCBPadIterator.cxx

index a398fa0dc2dfa8339f90b652601789a20d977209..fc47a06929dfeddeceebbdae5ff5ef453404af4a 100644 (file)
@@ -156,7 +156,7 @@ AliMUONCheck::CheckESD(Bool_t pdc06TriggerResponse)
   if (!tree) 
   {
     Error("CheckESD", "no ESD tree found");
-    AliError(Form("CheckESD", "no ESD tree found"));
+    AliError(Form("no ESD tree found"));
     return ;
   }
   fESD->ReadFromTree(tree);
index aef24030b03cfe0da6c65346728c12738957be42..a40d9fe005e2a2bec14e879359fced7c85bdbb0e 100644 (file)
@@ -665,7 +665,7 @@ AliMUONCluster::DumpMe() const
 //  cout << " " << Area() << endl;
   for (Int_t i = 0; i < fPads.GetSize(); ++i) 
   {
-    cout << Form("fPads[%d]=%x",i,fPads.At(i)) << endl;
+    cout << Form("fPads[%d]=%p",i,fPads.At(i)) << endl;
     if ( fPads.At(i) ) fPads.At(i)->Print();
   }
 }
index c79b7d6bb1516ccb12580bc9aa7543387f509de4..0a586c58c67dbb377c39bd0bd756fcf56d14cd58 100644 (file)
@@ -361,7 +361,7 @@ AliMUONDEPainter::SetResponder(Int_t depth)
     AliMUONPainterGroup* group = static_cast<AliMUONPainterGroup*>(fPainterGroups->GetValue(str));
     if ( str->String() == "BUSPATCH" ) 
     {
-      AliDebug(1,Form("group %s is indeed buspatch, using as responder",
+      AliDebug(1,Form("group %s is indeed buspatch, using as responder %d",
                       group->Type(),depth));
       group->SetResponder(kTRUE);
       fResponderGroup = group;
index 70cd1e8951755924d8af809ed810cf4fde4f5db4..14c1f8ffa19f7de4d37d988f36e2de30abf81364 100644 (file)
@@ -237,7 +237,7 @@ AliMUONDigitMaker::ReadTrackerDDL(AliRawReader* rawReader)
 
     if (!de)
       {
-       fLogger->Log(Form("DE %04d does not exist !"));
+       fLogger->Log(Form("DE %04d does not exist !", detElemId));
        continue;
       }
 
index ed95018c53e15a50c0aab508d11c906a8c3cb43d..13a8bf5d758c486b81f57331797fa2e87e072662 100644 (file)
@@ -89,7 +89,7 @@ AliMUONGainSubprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
   delete fGains;
   fGains = new AliMUON2DMap(kTRUE);
   
-  Master()->Log(Form("Reading Gain files for Run %d startTime %ld endTime %ld",
+  Master()->Log(Form("Reading Gain files for Run %d startTime %u endTime %u",
                      run,startTime,endTime));
   
   TList* sources = Master()->GetFileSources(kSystem,kId);
index b6f48eefcfaa59a356f401ec4279350bc89ee016..5959fc92b7c759d57d28aef43eaa182d0692d01d 100644 (file)
@@ -174,7 +174,7 @@ AliMUONGeometryMisAligner::SetXYAngMisAligFactor(Double_t factor)
     fDetElemMisAlig[4][1] = fDetElemMisAlig[5][1]*factor; // compatibility 
   }
   else
-    AliError(Form("Invalid XY angular misalign factor, %d", factor));
+    AliError(Form("Invalid XY angular misalign factor, %f", factor));
 }
 
 //_________________________________________________________________________
@@ -187,7 +187,7 @@ void AliMUONGeometryMisAligner::SetZCartMisAligFactor(Double_t factor)
     fDetElemMisAlig[2][1] = fDetElemMisAlig[0][1]*factor; // keep backward compatibility
   }
   else
-    AliError(Form("Invalid Z cartesian misalign factor, %d", factor));
+    AliError(Form("Invalid Z cartesian misalign factor, %f", factor));
 }
 
 //_________________________________________________________________________
index a473fa278d3bc26754dd0fa2ab099b478c43d6f6..70479a5e7f6e415e675134ce56317d6128ee697e 100644 (file)
@@ -135,7 +135,7 @@ Int_t AliMUONGlobalCrateConfig::ReadData(const TString& fileName)
         ULong_t addr;
         sscanf(tmp.Data(), "%lx", &addr);
         SetJtagVmeAddr(addr);
-        AliDebug(1, Form("Jtag Vme Address: 0x%x", addr));
+        AliDebug(1, Form("Jtag Vme Address: 0x%lx", addr));
 
         // clk div, rx phase, read delay
         in.getline(line, 255);
@@ -178,7 +178,7 @@ Int_t AliMUONGlobalCrateConfig::ReadData(const TString& fileName)
         sscanf(tmp.Data(), "%lx", &addr);
         if (addr) nDarc++;
         SetFirstDarcVmeAddr(addr);
-        AliDebug(1, Form("First Darc Vme Address: 0x%x", addr));
+        AliDebug(1, Form("First Darc Vme Address: 0x%lx", addr));
 
         // type
         in.getline(line, 255);
@@ -234,7 +234,7 @@ Int_t AliMUONGlobalCrateConfig::ReadData(const TString& fileName)
         if (addr) nDarc++;
         sscanf(tmp.Data(), "%lx", &addr);
         SetSecondDarcVmeAddr(addr);
-        AliDebug(1, Form("Second Darc Vme Address: 0x%x", addr));
+        AliDebug(1, Form("Second Darc Vme Address: 0x%lx", addr));
         
         // type
         in.getline(line, 255);
@@ -287,7 +287,7 @@ Int_t AliMUONGlobalCrateConfig::ReadData(const TString& fileName)
         ULong_t addr;
         sscanf(tmp.Data(), "%lx", &addr);
         SetGlobalVmeAddr(addr);
-        AliDebug(1, Form("Global Vme Address: 0x%x", addr));
+        AliDebug(1, Form("Global Vme Address: 0x%lx", addr));
 
         for (Int_t i = 0; i < GetGlobalNofRegisters(); ++i) {
             in.getline(line, 255);
@@ -307,7 +307,7 @@ Int_t AliMUONGlobalCrateConfig::ReadData(const TString& fileName)
         ULong_t addr;
         sscanf(tmp.Data(), "%lx", &addr);
         SetFetVmeAddr(addr);
-        AliDebug(1, Form("Fet Vme Address: 0x%x", addr));
+        AliDebug(1, Form("Fet Vme Address: 0x%lx", addr));
 
         for (Int_t i = 0; i < GetFetNofRegisters(); ++i) {
             in.getline(line, 255);
index 996561573a0e948c089bbcaa8919f60ddced89fa..4e81712167c5d777ffefc991897e40686da36d26 100644 (file)
@@ -281,7 +281,7 @@ void AliMUONLocalTrigger::Print(Option_t* opt) const
   cout << Form("Circuit %3d Decision %2d StripX %2d Dev %2d(%1d) StripY %2d Lpt %6s Hpt %6s",
                LoCircuit(), GetLoDecision(),
                LoStripX(), LoDev(), LoSdev(), LoStripY(),
-               AsString(LoLpt()),AsString(LoHpt()),IsNull()) << endl;
+               AsString(LoLpt()),AsString(LoHpt())) << endl;
   
   if ( sopt.Contains("FULL") ) { 
 
index cd4bc3a1d1fc95578acd123ff27a8784b9364055..e27f87a5373bc9ceaea93003de6ddc31911379cb 100644 (file)
@@ -69,7 +69,7 @@ AliMUONOccupancySubprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t end
   delete fOccupancyMap;
   fOccupancyMap = new AliMUON2DMap(kTRUE);
   
-  Master()->Log(Form("Reading occupancy file for Run %d startTime %ld endTime %ld",
+  Master()->Log(Form("Reading occupancy file for Run %d startTime %u endTime %u",
                      run,startTime,endTime));
   
   TList* sources = Master()->GetFileSources(kSystem,kId);
index f6dc5c3860c77e9cbaf3893e71e4cfab9a609180..3342fffcdfc664ccb272c8e65dec162b38e3ed40 100644 (file)
@@ -177,7 +177,7 @@ AliMUONPainterMasterFrame::AddPainterMatrix(AliMUONPainterMatrix* painterMatrix)
 {
   /// array is adopted (by the registry)
 
-  AliDebug(1,Form("matrix=%x %s",painterMatrix,painterMatrix->GetName()));
+  AliDebug(1,Form("matrix=%p %s",painterMatrix,painterMatrix->GetName()));
   
   Int_t i = AliMUONPainterRegistry::Instance()->Register(painterMatrix);
 
@@ -191,7 +191,7 @@ AliMUONPainterMasterFrame::PainterMatrixWantToShow(AliMUONPainterMatrix* group)
   /// FIXME: should check whether we are the active window before
   /// responding to this message ?
 
-  AliDebug(1,Form("group=%x %s",group,group->GetName()));
+  AliDebug(1,Form("group=%p %s",group,group->GetName()));
   
   Int_t i = AliMUONPainterRegistry::Instance()->FindIndexOf(group);
 
index 30263f3066feef238a89a34b35270027996002ef..597f1e32b5a135fba9ef28f97031859042f50912 100644 (file)
@@ -178,7 +178,7 @@ AliMUONPainterMatrixFrame::ChangeTitle(AliMUONVPainter* painter,
     
     AliMUONPainterGroup* group = master->PlotterGroup();
 
-    AliDebug(1,Form("Painter is %s plotterGroup is %x %s",
+    AliDebug(1,Form("Painter is %s plotterGroup is %p %s",
                     painter->PathName().Data(),
                     group,
                     ( group ? group->Type() : "")));
@@ -398,7 +398,7 @@ AliMUONPainterMatrixFrame::MouseEnter(AliMUONVPainter* painter)
 {
   /// Emit a signal to notify that mouse pointer is entering a given painter
 
-  AliDebug(1,Form("painter=%x %s",painter,painter->PathName().Data()));
+  AliDebug(1,Form("painter=%p %s",painter,painter->PathName().Data()));
   
   ChangeTitle(painter);
 
index d2718dd034cfba85fcd3ca0213490a74409d06a3..ee65c53346a7204fb38f8e10669344f9dd17cf37 100644 (file)
@@ -143,7 +143,7 @@ AliMUONPainterRegistry::AddToHistory(AliMUONPainterMatrix* group)
                           "AliMUONPainterRegistry",this,
                           "HistoryMenuActivated(Int_t)");
     
-    AliDebug(1,Form("HistoryMenu create at %x",fHistoryMenu));
+    AliDebug(1,Form("HistoryMenu create at %p",fHistoryMenu));
   }
   
   if ( fHistoryMenu ) 
index 0b34b7c594ccd20fa7610e2f429c460478b83777..4ac64a9d394f6d3c26a2a49f361e7de630060bd0 100644 (file)
@@ -135,7 +135,7 @@ AliMUONPedestalSubprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endT
   
   fTooFewEvents = kFALSE;
   
-  Master()->Log(Form("Reading pedestal files for Run %d startTime %ld endTime %ld",
+  Master()->Log(Form("Reading pedestal files for Run %d startTime %u endTime %u",
                      run,startTime,endTime));
   
   TList* sources = Master()->GetFileSources(kSystem,kId);
index bd941f3fa70fb890b3f8dd10d1c1efc82de4f210..aea24c770cd11432db259e2b619cab19ae7be908 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()),
@@ -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)
                        );
index 45cfbade9437500be963f3d0ac4496a3de219a77..aa9b12a2f460eecc31c570e3f1cf91dd6a7110f6 100644 (file)
@@ -726,7 +726,7 @@ void AliMUONRawStreamTriggerHP::AliDecoderEventHandler::OnError(
                
        default:
                message = Form(
-                       "%s (At byte %d in DDL.)",
+                       "%s (At byte %lu in DDL.)",
                        ErrorCodeToMessage(error),
                        (unsigned long)location - (unsigned long)fBufferStart + sizeof(AliRawDataHeader)
                );
index 225237d803c8c987c911bc58492b83d6f1f64d31..353b9e75e5af4fc164062cc6f16eb3c30daecc4a 100644 (file)
@@ -662,7 +662,7 @@ Double_t AliMUONSurveyObj::EvalFunction(const TF2 *lFunction, Int_t iP1, Int_t i
     }
   default:
     {
-      AliError(Form("Coordinate %c is not valid, options are X Y Z",lCoord));
+      AliError(Form("Coordinate %s is not valid, options are X Y Z",lCoord));
       return 0;
     }
   }
index f17cc0260939541e96f02a51459dfd8c059edafa..02859bce758fbf35faf21dcf2a124f7c9a11f63a 100644 (file)
@@ -424,7 +424,7 @@ Bool_t AliMUONTrackParam::CompatibleTrackParam(const AliMUONTrackParam &trackPar
   
   // check Z parameters
   if (fZ != trackParam.fZ)
-    AliWarning(Form("Parameters are given at different Z position (%le : %le): results are meaningless", fZ, trackParam.fZ));
+    AliWarning(Form("Parameters are given at different Z position (%e : %e): results are meaningless", fZ, trackParam.fZ));
   
   // compute the parameter residuals
   TMatrixD deltaParam(fParameters, TMatrixD::kMinus, trackParam.fParameters);
index 385a834f76fdf85ce7766ec7bd2c25ca669cfe5d..36e4769ffcb24f3528ee8dc745a944285d922bb9 100644 (file)
@@ -316,7 +316,7 @@ AliMUONTrackerData::Add(const AliMUONTrackerData& data)
   if ( ( !fHistogramming && data.fHistogramming ) || ( fHistogramming && !data.fHistogramming ) 
       || fXmin != data.fXmin || fXmax != data.fXmax ) 
   {
-    AliError(Form("Incompatible histogramming (%x vs %x) (xmax = %e vs %e ; xmin = %e vs %e)",
+    AliError(Form("Incompatible histogramming (%p vs %p) (xmax = %e vs %e ; xmin = %e vs %e)",
              fHistogramming,data.fHistogramming,fXmax,data.fXmax,fXmin,data.fXmin));
     return kFALSE;
   }
index df9a8e5d4ce6f18e51f2e9e1beb4d91d62c1605d..ac6012c6dd17111ce4c6d5b2b434d60d728ad9d5 100644 (file)
@@ -530,7 +530,7 @@ AliMUONTriggerIO::WriteGlobalConfig(const char* globalFile, AliMUONGlobalCrateCo
   
   // Jtag
   out << globalConfig->GetJtagName() << endl;
-  out << Form("0x%08x", globalConfig->GetJtagVmeAddr()) << endl;
+  out << Form("0x%08lx", globalConfig->GetJtagVmeAddr()) << endl;
   out << Form("%d %d %d", globalConfig->GetJtagClockDiv(), 
               globalConfig->GetJtagRxPhase(), globalConfig->GetJtagRdDelay()) << endl;
  
@@ -548,7 +548,7 @@ AliMUONTriggerIO::WriteGlobalConfig(const char* globalFile, AliMUONGlobalCrateCo
   
   // first darc board
   out << globalConfig->GetFirstDarcName() << endl;
-  out << Form("0x%08x", globalConfig->GetFirstDarcVmeAddr()) << endl;
+  out << Form("0x%08lx", globalConfig->GetFirstDarcVmeAddr()) << endl;
   out << globalConfig->GetFirstDarcType() << endl;
   disable = globalConfig->GetFirstDarcDisable();
   out << Form("0x%02x", disable) << endl;
@@ -559,7 +559,7 @@ AliMUONTriggerIO::WriteGlobalConfig(const char* globalFile, AliMUONGlobalCrateCo
   
   // second darc board
   out << globalConfig->GetSecondDarcName() << endl;
-  out << Form("0x%08x", globalConfig->GetSecondDarcVmeAddr()) << endl;
+  out << Form("0x%08lx", globalConfig->GetSecondDarcVmeAddr()) << endl;
   out << globalConfig->GetSecondDarcType() << endl;
   disable = globalConfig->GetSecondDarcDisable();
   out << Form("0x%02x", disable) << endl;
@@ -570,13 +570,13 @@ AliMUONTriggerIO::WriteGlobalConfig(const char* globalFile, AliMUONGlobalCrateCo
   
   // global board
   out << globalConfig->GetGlobalName() << endl;
-  out << Form("0x%08x", globalConfig->GetGlobalVmeAddr()) << endl;
+  out << Form("0x%08lx", globalConfig->GetGlobalVmeAddr()) << endl;
   for (Int_t i = 0; i < globalConfig->GetGlobalNofRegisters(); ++i)
     out << Form("0x%x", globalConfig->GetGlobalRegister(i)) << endl;
   
   // Fet board
   out << globalConfig->GetFetName() << endl;
-  out << Form("0x%08x", globalConfig->GetFetVmeAddr()) << endl;
+  out << Form("0x%08lx", globalConfig->GetFetVmeAddr()) << endl;
   for (Int_t i = 0; i < globalConfig->GetFetNofRegisters(); ++i)
     out << Form("0x%x", globalConfig->GetFetRegister(i)) << endl;
   
index a0e6e208b1b4b40a155a935edde512e76a6f8f0e..3ea647f93a1f178259d7989f1bb049df8d005b3f 100644 (file)
@@ -138,7 +138,7 @@ AliMUONTriggerSubprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTi
   delete fGlobalConfig; fGlobalConfig = 0x0;
   delete fLUT; fLUT = 0x0;
   
-  Master()->Log(Form("Reading trigger masks for Run %d startTime %ld endTime %ld",
+  Master()->Log(Form("Reading trigger masks for Run %d startTime %u endTime %u",
                      run,startTime,endTime));
     
   Int_t check = 
@@ -180,7 +180,7 @@ AliMUONTriggerSubprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTi
   {
     fLUT = new AliMUONTriggerLut;
     
-    Master()->Log(Form("Reading trigger LUT for Run %d startTime %ld endTime %ld",
+    Master()->Log(Form("Reading trigger LUT for Run %d startTime %u endTime %u",
                        run,startTime,endTime));
   
     ok = tio.ReadLUT(GetFileName("LUT").Data(),*fLUT);
index 5ecfbecd26343483210cf972a7a1aefdb1c6506d..eca2a2023e827246688a6d0395631ca9257fbc70 100644 (file)
@@ -222,7 +222,7 @@ AliMUONTriggerTrackToTrackerClusters::GenerateClusters(Int_t iChamber,
   }
   else
   {
-    AliWarning(Form("No DE found at xg=%e yg=%e",detElemId,x,y));
+    AliWarning(Form("No DE found at xg=%e yg=%e",x,y));
   }
   
   return nadded;
index 38135542baf26592146cdf8e1e4283bdfcf8fdc5..541518df232fecb4845493e03a45b20402f70639 100755 (executable)
@@ -87,7 +87,7 @@ AliMpConnection::~AliMpConnection()
 {
 /// Destructor  
 
-  AliDebug(1,Form("this=%p"));
+  AliDebug(1,Form("this=%p", this));
 }
 
 //_____________________________________________________________________________
index defaca64accea99de173f4df5eed75476a65da26..5b94cd4f8f92d5ad5d3e31fcc8d927bea9f553e2 100644 (file)
@@ -831,7 +831,7 @@ void AliMpDEVisu::PopUpManuMotif(AliMpSlat* slat)
     Int_t w = Int_t(h*dimensionX/dimensionY);
     AliMpVPainter* painter = AliMpVPainter::CreatePainter(motifPosFound);
       
-    CreatePopupWindow(w,h,Form("Manu %d",fNumberEntry->GetIntNumber()),
+    CreatePopupWindow(w,h,Form("Manu %ld",fNumberEntry->GetIntNumber()),
                      painter,"ZT");
   }
 }
@@ -889,7 +889,7 @@ void AliMpDEVisu::PopUpManuMotif(AliMpSector* sector)
 
     AliMpVPainter* painter = AliMpVPainter::CreatePainter(motifPosFound);
     
-    CreatePopupWindow(w,h,Form("Manu %d",fNumberEntry->GetIntNumber()),
+    CreatePopupWindow(w,h,Form("Manu %ld",fNumberEntry->GetIntNumber()),
                       painter,"ZT");
     
   }
index 4cf9e3c0c206a91dcc578317abb5809a4b120c24..b56e028f535fab004b88e7873cc1702f2096d8e0 100644 (file)
@@ -275,7 +275,7 @@ AliMpPCBPadIterator::Print(Option_t*) const
           AliMp::PairFirst(fMinIndices),AliMp::PairSecond(fMinIndices),
           AliMp::PairFirst(fMaxIndices),AliMp::PairSecond(fMaxIndices)) << endl
   << Form("currentOffset=(%d,%d) isdone=%d currentpad=",
-          AliMp::PairFirst(fOffset),AliMp::PairSecond(fOffset)) << endl;
+          AliMp::PairFirst(fOffset),AliMp::PairSecond(fOffset),fIsDone) << endl;
   fCurrentPad.Print();
 }