From 8894104d09aafd97ff581d07c1a275b75266d8c3 Mon Sep 17 00:00:00 2001 From: David Rohr Date: Sat, 26 Sep 2026 08:46:35 +0200 Subject: [PATCH] Fix couple of invalid debug print arguments --- DataFormats/Reconstruction/src/Vertex.cxx | 2 ++ GPU/GPUTracking/Base/GPUReconstructionDeviceBase.cxx | 2 +- GPU/GPUTracking/Base/GPUReconstructionIO.h | 4 ++-- GPU/GPUTracking/DataTypes/CalibdEdxTrackTopologyPol.cxx | 4 ++-- GPU/GPUTracking/Global/GPUChainTrackingClusterizer.cxx | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/DataFormats/Reconstruction/src/Vertex.cxx b/DataFormats/Reconstruction/src/Vertex.cxx index 9294aeb655803..b2cbb9388dcfa 100644 --- a/DataFormats/Reconstruction/src/Vertex.cxx +++ b/DataFormats/Reconstruction/src/Vertex.cxx @@ -20,6 +20,7 @@ namespace o2 namespace dataformats { +#ifndef GPUCA_NO_FMT std::string VertexBase::asString() const { return fmt::format("Vtx {{{:+.4e},{:+.4e},{:+.4e}}} Cov.:{{{{{:.3e}..}},{{{:.3e},{:.3e}..}},{{{:.3e},{:.3e},{:.3e}}}}}", @@ -37,6 +38,7 @@ void VertexBase::print() const { std::cout << *this << std::endl; } +#endif bool VertexBase::operator==(const VertexBase& other) const { diff --git a/GPU/GPUTracking/Base/GPUReconstructionDeviceBase.cxx b/GPU/GPUTracking/Base/GPUReconstructionDeviceBase.cxx index dba1e85aad3d6..c43bea334f1e6 100644 --- a/GPU/GPUTracking/Base/GPUReconstructionDeviceBase.cxx +++ b/GPU/GPUTracking/Base/GPUReconstructionDeviceBase.cxx @@ -99,7 +99,7 @@ int32_t GPUReconstructionDeviceBase::InitDevice() return (1); } if ((size_t)GetProcessingSettings().nStreams > constants::GPU_MAX_STREAMS) { - GPUError("Too many straems requested %d > %d\n", GetProcessingSettings().nStreams, constants::GPU_MAX_STREAMS); + GPUError("Too many straems requested %d > %zu\n", GetProcessingSettings().nStreams, constants::GPU_MAX_STREAMS); return (1); } diff --git a/GPU/GPUTracking/Base/GPUReconstructionIO.h b/GPU/GPUTracking/Base/GPUReconstructionIO.h index fb771ec3639a9..494e1cc308ed7 100644 --- a/GPU/GPUTracking/Base/GPUReconstructionIO.h +++ b/GPU/GPUTracking/Base/GPUReconstructionIO.h @@ -69,7 +69,7 @@ inline uint32_t GPUReconstruction::DumpData(FILE* fp, const T* const* entries, c } } if (GetProcessingSettings().debugLevel >= 2) { - GPUInfo("Dumped %zu %s", numTotal, IOTYPENAMES[type]); + GPUInfo("Dumped %u %s", numTotal, IOTYPENAMES[type]); } return numTotal; } @@ -247,7 +247,7 @@ inline aligned_unique_buffer_ptr GPUReconstruction::ReadDynamicStructFromFile r = fread(newObj.getraw() + sizeof(T), 1, dynsize - sizeof(T), fp); fclose(fp); if (r != dynsize - sizeof(T)) { - GPUError("ERROR in %s: File Read error in %s: %zu (%zu expected)", file, r, dynsize); + GPUError("ERROR in %s: File Read error: %zu (%zu expected)", file, r, dynsize - sizeof(T)); throw std::runtime_error("invalid size"); } if (GetProcessingSettings().debugLevel >= 2) { diff --git a/GPU/GPUTracking/DataTypes/CalibdEdxTrackTopologyPol.cxx b/GPU/GPUTracking/DataTypes/CalibdEdxTrackTopologyPol.cxx index dd61598f2de7e..7083818da0d70 100644 --- a/GPU/GPUTracking/DataTypes/CalibdEdxTrackTopologyPol.cxx +++ b/GPU/GPUTracking/DataTypes/CalibdEdxTrackTopologyPol.cxx @@ -181,6 +181,8 @@ void CalibdEdxTrackTopologyPol::setFromContainer(const CalibdEdxTrackTopologyPol construct(); } +#ifndef GPUCA_STANDALONE + std::string CalibdEdxTrackTopologyPol::getPolyName(const int32_t region, const ChargeType charge) { const std::string typeName[2] = {"qMax", "qTot"}; @@ -188,8 +190,6 @@ std::string CalibdEdxTrackTopologyPol::getPolyName(const int32_t region, const C return polname; } -#ifndef GPUCA_STANDALONE - void CalibdEdxTrackTopologyPol::writeToFile(TFile& outf, const char* name) const { CalibdEdxTrackTopologyPolContainer cont; diff --git a/GPU/GPUTracking/Global/GPUChainTrackingClusterizer.cxx b/GPU/GPUTracking/Global/GPUChainTrackingClusterizer.cxx index 8c6534d74b31d..f884b4fb8a10a 100644 --- a/GPU/GPUTracking/Global/GPUChainTrackingClusterizer.cxx +++ b/GPU/GPUTracking/Global/GPUChainTrackingClusterizer.cxx @@ -249,7 +249,7 @@ void GPUChainTracking::TPCClusterizerCheckExtraADCZeros(GPUTPCClusterFinder& clu if (nNonZeroADCs > 0) { GPUInfo("Non Zero ADCs: %zu", nNonZeroADCs); } else { - GPUInfo("Cleared all extra ADC values!", nNonZeroADCs); + GPUInfo("Cleared all extra ADC values!"); } }