]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Warnings fixed.
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Jul 2010 13:21:41 +0000 (13:21 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Jul 2010 13:21:41 +0000 (13:21 +0000)
STEER/AliCDBDump.cxx
STEER/AliCDBGrid.cxx
STEER/AliCDBLocal.cxx
STEER/AliGRPPreprocessor.cxx

index 322f614af6790b94050887cf812ec8c33f001754..512aece1ae8ba437360a803f6dd5ec3c916fa5de 100644 (file)
@@ -112,7 +112,7 @@ Bool_t AliCDBDump::IdToKeyName(const AliCDBRunRange& runRange, Int_t version,
         }
 
        if (subVersion < 0) {
-               AliDebug(2,Form("Invalid subversion <%s>.", subVersion));
+               AliDebug(2,Form("Invalid subversion <%d>.", subVersion));
                return kFALSE;
        }
     
index 43fc883c5d00bcd51c9d489a3eac5afa9b31ceb4..958026dfbdb3161fd896e494f30db03c8b910f84 100644 (file)
@@ -61,7 +61,7 @@ fCleanupInterval(cleanupInterval)
                // connection to the Grid
                AliInfo("Connection to the Grid...");
                if(gGrid){
-                       AliInfo(Form("gGrid = %x; fGridUrl = %s; gGrid->GridUrl() = %s",gGrid,fGridUrl.Data(), gGrid->GridUrl()));
+                       AliInfo(Form("gGrid = %p; fGridUrl = %s; gGrid->GridUrl() = %s",gGrid,fGridUrl.Data(), gGrid->GridUrl()));
                        AliInfo(Form("fUser = %s; gGrid->GetUser() = %s",fUser.Data(), gGrid->GetUser()));
                }
                TGrid::Connect(fGridUrl.Data(),fUser.Data());
@@ -122,7 +122,7 @@ fCleanupInterval(cleanupInterval)
                // default settings are: cacheSize=1GB, cleanupInterval = 0
                if(!TFile::ShrinkCacheFileDir(fCacheSize, fCleanupInterval)) {
                        AliError(Form("Could not set following values "
-                               "to ShrinkCacheFileDir: cacheSize = %d, cleanupInterval = %d !",
+                               "to ShrinkCacheFileDir: cacheSize = %ld, cleanupInterval = %ld !",
                                fCacheSize, fCleanupInterval));
                }
        }
@@ -1169,8 +1169,8 @@ AliCDBParam* AliCDBGridFactory::CreateParameter(const char* gridString) {
        AliDebug(2, Form("s.e.: %s", se.Data()));
        AliDebug(2, Form("local cache folder: %s", cacheFolder.Data()));
        AliDebug(2, Form("local cache operate disconnected: %d", operateDisconnected));
-       AliDebug(2, Form("local cache size: %d", cacheSize));
-       AliDebug(2, Form("local cache cleanup interval: %d", cleanupInterval));
+       AliDebug(2, Form("local cache size: %ld", cacheSize));
+       AliDebug(2, Form("local cache cleanup interval: %ld", cleanupInterval));
 
        if(dbFolder == ""){
                AliError("Base folder must be specified!");
@@ -1252,7 +1252,7 @@ AliCDBGridParam::AliCDBGridParam(const char* gridUrl, const char* user, const ch
        SetType("alien");
 
        TString uri = Form("%s?User=%s?DBFolder=%s?SE=%s?CacheFolder=%s"
-                       "?OperateDisconnected=%d?CacheSize=%d?CleanupInterval=%d",
+                       "?OperateDisconnected=%d?CacheSize=%ld?CleanupInterval=%ld",
                        fGridUrl.Data(), fUser.Data(),
                        fDBFolder.Data(), fSE.Data(), fCacheFolder.Data(),
                        fOperateDisconnected, fCacheSize, fCleanupInterval);
index 8074120278898d5f2ca5f17dcd340c1c9d258426..52850ba6ab88fa713c1c0bf8d2160af9b11bea8d 100644 (file)
@@ -114,7 +114,7 @@ Bool_t AliCDBLocal::IdToFilename(const AliCDBId& id, TString& filename) const {
        }
 
        if (id.GetSubVersion() < 0) {
-               AliDebug(2,Form("Invalid subversion <%s>.", id.GetSubVersion()));
+               AliDebug(2,Form("Invalid subversion <%d>.", id.GetSubVersion()));
                return kFALSE;
        }
  
index f78bb8a513327f1e92e93921827067289f60999d..1e1003686f5bc53a5762072b08251b0821f875d8 100644 (file)
@@ -696,7 +696,7 @@ UInt_t AliGRPPreprocessor::ProcessLHCData(AliGRPObject *grpobj)
                                                                TString bmString0 = beamModeString->String();
                                                                TString bmString1 = beamModeString1->String();
                                                                if (bmString0.CompareTo(bmString1.Data(),TString::kIgnoreCase) == -1){
-                                                                       AliWarning(Form("The beam mode changed from %s to %s during the run at timestamp %f! Setting it to %s and keeping track of the time of the change to set MaxTimeLHCValidity afterward",bmString0.Data(), bmString1.Data(), bmString0.Data(), timeBeamModeEnd));
+                                                                       AliWarning(Form("The beam mode changed from %s to %s during the run at timestamp %f! Setting it to %s and keeping track of the time of the change to set MaxTimeLHCValidity afterward",bmString0.Data(), bmString1.Data(), timeBeamModeEnd, bmString0.Data()));
                                                                        flagBeamMode = kTRUE;
                                                                }
                                                        }
@@ -753,7 +753,7 @@ UInt_t AliGRPPreprocessor::ProcessLHCData(AliGRPObject *grpobj)
                                                                TString mmString0 = machineModeString->String();
                                                                TString mmString1 = machineModeString1->String();
                                                                if (mmString0.CompareTo(mmString1.Data(),TString::kIgnoreCase) == -1){
-                                                                       AliWarning(Form("The machine mode changed from %s to %s during the run at timestamp %f! Setting it to %s and keeping track of the time of the change to set MaxTimeLHCValidity afterward",mmString0.Data(),mmString1.Data(),mmString0.Data(),timeMachineModeEnd));
+                                                                       AliWarning(Form("The machine mode changed from %s to %s during the run at timestamp %f! Setting it to %s and keeping track of the time of the change to set MaxTimeLHCValidity afterward",mmString0.Data(),mmString1.Data(),timeMachineModeEnd,mmString0.Data()));
                                                                        flagMachineMode = kTRUE;
                                                                }
                                                        }
@@ -819,7 +819,7 @@ UInt_t AliGRPPreprocessor::ProcessLHCData(AliGRPObject *grpobj)
                                                                TObjString* beamString1 = beam1->GetStringArray(0);
                                                                TString beamType1 = beamString1->String();
                                                                if (beamType.CompareTo(beamType1.Data(),TString::kIgnoreCase) == -1){
-                                                                       AliWarning(Form("The Beam Type changed from %s to %s during the run at timestamp %f! Setting it to %s and keeping track of the time of the change to set MaxTimeLHCValidity afterward",beamType.Data(),(beamString1->String()).Data(),beamType.Data(),timeBeamEnd));
+                                                                       AliWarning(Form("The Beam Type changed from %s to %s during the run at timestamp %f! Setting it to %s and keeping track of the time of the change to set MaxTimeLHCValidity afterward",beamType.Data(),(beamString1->String()).Data(),timeBeamEnd,beamType.Data()));
                                                                        flagBeam = kTRUE;
                                                                }
                                                        }