]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliCDBLocal.cxx
Fix in composition of QAChecked output image file (Melinda S.)
[u/mrichter/AliRoot.git] / STEER / AliCDBLocal.cxx
index 0c590e72f79821cb48beb90730e44452667681e9..b9651e9157719e085d4c6a348c280dfbcb570028 100644 (file)
@@ -20,6 +20,7 @@
 //                                                                                             //
 /////////////////////////////////////////////////////////////////////////////////////////////////
 
+#include <cstdlib>
 #include <TSystem.h>
 #include <TObjString.h>
 #include <TRegexp.h>
@@ -113,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;
        }
  
@@ -394,6 +395,8 @@ AliCDBId* AliCDBLocal::GetId(const AliCDBId& query) {
                        if (!aRunRange.Comprises(query.GetAliCDBRunRange())) continue;
                        // aRunRange contains requested run!
 
+                       AliDebug(1,Form("Filename %s matches\n",filename));
+
                        if (result->GetVersion() < aVersion) {
                                result->SetVersion(aVersion);
                                result->SetSubVersion(aSubVersion);