From 6720fa1fba889a9a54b1d026ef545f5a1f069d1d Mon Sep 17 00:00:00 2001 From: zampolli Date: Tue, 20 Jul 2010 13:21:41 +0000 Subject: [PATCH] Warnings fixed. --- STEER/AliCDBDump.cxx | 2 +- STEER/AliCDBGrid.cxx | 10 +++++----- STEER/AliCDBLocal.cxx | 2 +- STEER/AliGRPPreprocessor.cxx | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/STEER/AliCDBDump.cxx b/STEER/AliCDBDump.cxx index 322f614af67..512aece1ae8 100644 --- a/STEER/AliCDBDump.cxx +++ b/STEER/AliCDBDump.cxx @@ -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; } diff --git a/STEER/AliCDBGrid.cxx b/STEER/AliCDBGrid.cxx index 43fc883c5d0..958026dfbdb 100644 --- a/STEER/AliCDBGrid.cxx +++ b/STEER/AliCDBGrid.cxx @@ -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); diff --git a/STEER/AliCDBLocal.cxx b/STEER/AliCDBLocal.cxx index 80741202788..52850ba6ab8 100644 --- a/STEER/AliCDBLocal.cxx +++ b/STEER/AliCDBLocal.cxx @@ -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; } diff --git a/STEER/AliGRPPreprocessor.cxx b/STEER/AliGRPPreprocessor.cxx index f78bb8a5133..1e1003686f5 100644 --- a/STEER/AliGRPPreprocessor.cxx +++ b/STEER/AliGRPPreprocessor.cxx @@ -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; } } -- 2.43.0