Skip to content

Commit b50afbb

Browse files
committed
Remove usage of std::
1 parent 79cc38e commit b50afbb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

GPU/GPUTracking/TPCClusterFinder/GPUTPCNNClusterizer.cxx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,14 @@ void* GPUTPCNNClusterizer::setIOPointers(void* mem)
135135
// Compute allocated bytes (difference between advanced pointer and start pointer)
136136
size_t allocatedBytes = static_cast<size_t>(reinterpret_cast<uintptr_t>(mem) - reinterpret_cast<uintptr_t>(startMem));
137137
double allocatedMB = static_cast<double>(allocatedBytes) / (1024.0 * 1024.0);
138-
LOG(info) << std::fixed << std::setprecision(3)
139-
<< "(NNCLUS, GPUTPCNNClusterizer, this=" << this << ") Total scratch allocation in setIOPointers: " << allocatedBytes
140-
<< " bytes (" << allocatedMB << " MB)";
138+
{
139+
char allocMsg[256];
140+
int nn = snprintf(allocMsg, sizeof(allocMsg),
141+
"(NNCLUS, GPUTPCNNClusterizer, this=%p) Total scratch allocation in setIOPointers: %zu bytes (%.3f MB)",
142+
(void*)this, (size_t)allocatedBytes, allocatedMB);
143+
(void)nn;
144+
LOG(info) << allocMsg;
145+
}
141146
}
142147

143148
return mem;

0 commit comments

Comments
 (0)