]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing debug compilation and error code being returned during parsing of options.
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 May 2008 14:21:36 +0000 (14:21 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 May 2008 14:21:36 +0000 (14:21 +0000)
HLT/MUON/utils/AliHLTMUONEmptyEventFilterComponent.cxx

index 6e88c9572297238e6d76db84862dbd5b2f1817b4..7b8205d784bdcedba4323307263201065eeefb08 100644 (file)
@@ -131,7 +131,7 @@ int AliHLTMUONEmptyEventFilterComponent::DoInit(int argc, const char** argv)
                }
                
                HLTError("Unknown option '%s'.", argv[i]);
-               return EINVAL;
+               return -EINVAL;
        }
 
        return 0;
@@ -176,7 +176,7 @@ int AliHLTMUONEmptyEventFilterComponent::DoEvent(
        for (AliHLTUInt32_t n = 0; n < evtData.fBlockCnt; n++)
        {
                HLTDebug("Handling block: %u, with fDataType = '%s', fPtr = %p and fSize = %u bytes.",
-                       i, DataType2Text(blocks[n].fDataType).c_str(), blocks[n].fPtr, blocks[n].fSize
+                       n, DataType2Text(blocks[n].fDataType).c_str(), blocks[n].fPtr, blocks[n].fSize
                );
 
                if (blocks[n].fDataType == AliHLTMUONConstants::TriggerRecordsBlockDataType())