mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Use %zu formatter for size_t, not PRIu64 (which is for uint64_t)
This commit is contained in:
parent
7c1c934c1b
commit
a59613e56f
|
@ -48,11 +48,6 @@
|
|||
#define VK_API_VERSION_PATCH VK_VERSION_PATCH
|
||||
#endif
|
||||
|
||||
// for msvc
|
||||
#ifndef PRIu64
|
||||
#define PRIu64 "I64u"
|
||||
#endif
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
class CCommandProcessorFragment_Vulkan : public CCommandProcessorFragment_GLBase
|
||||
|
@ -92,7 +87,7 @@ class CCommandProcessorFragment_Vulkan : public CCommandProcessorFragment_GLBase
|
|||
break;
|
||||
default: break;
|
||||
}
|
||||
dbg_msg("vulkan", "allocated chunk of memory with size: %" PRIu64 " for frame %" PRIu64 " (%s)", (size_t)Size, (size_t)m_CurImageIndex, pUsage);
|
||||
dbg_msg("vulkan", "allocated chunk of memory with size: %zu for frame %zu (%s)", (size_t)Size, (size_t)m_CurImageIndex, pUsage);
|
||||
}
|
||||
|
||||
void VerboseDeallocatedMemory(VkDeviceSize Size, size_t FrameImageIndex, EMemoryBlockUsage MemUsage)
|
||||
|
@ -114,7 +109,7 @@ class CCommandProcessorFragment_Vulkan : public CCommandProcessorFragment_GLBase
|
|||
break;
|
||||
default: break;
|
||||
}
|
||||
dbg_msg("vulkan", "deallocated chunk of memory with size: %" PRIu64 " for frame %" PRIu64 " (%s)", (size_t)Size, (size_t)m_CurImageIndex, pUsage);
|
||||
dbg_msg("vulkan", "deallocated chunk of memory with size: %zu for frame %zu (%s)", (size_t)Size, (size_t)m_CurImageIndex, pUsage);
|
||||
}
|
||||
|
||||
/************************
|
||||
|
@ -2062,7 +2057,7 @@ protected:
|
|||
m_pStagingMemoryUsage->store(m_pStagingMemoryUsage->load(std::memory_order_relaxed) - FreeedMemory, std::memory_order_relaxed);
|
||||
if(IsVerbose())
|
||||
{
|
||||
dbg_msg("vulkan", "deallocated chunks of memory with size: %" PRIu64 " from all frames (staging buffer)", (size_t)FreeedMemory);
|
||||
dbg_msg("vulkan", "deallocated chunks of memory with size: %zu from all frames (staging buffer)", (size_t)FreeedMemory);
|
||||
}
|
||||
}
|
||||
FreeedMemory = 0;
|
||||
|
@ -2072,7 +2067,7 @@ protected:
|
|||
m_pBufferMemoryUsage->store(m_pBufferMemoryUsage->load(std::memory_order_relaxed) - FreeedMemory, std::memory_order_relaxed);
|
||||
if(IsVerbose())
|
||||
{
|
||||
dbg_msg("vulkan", "deallocated chunks of memory with size: %" PRIu64 " from all frames (buffer)", (size_t)FreeedMemory);
|
||||
dbg_msg("vulkan", "deallocated chunks of memory with size: %zu from all frames (buffer)", (size_t)FreeedMemory);
|
||||
}
|
||||
}
|
||||
FreeedMemory = 0;
|
||||
|
@ -2083,7 +2078,7 @@ protected:
|
|||
m_pTextureMemoryUsage->store(m_pTextureMemoryUsage->load(std::memory_order_relaxed) - FreeedMemory, std::memory_order_relaxed);
|
||||
if(IsVerbose())
|
||||
{
|
||||
dbg_msg("vulkan", "deallocated chunks of memory with size: %" PRIu64 " from all frames (texture)", (size_t)FreeedMemory);
|
||||
dbg_msg("vulkan", "deallocated chunks of memory with size: %zu from all frames (texture)", (size_t)FreeedMemory);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3822,7 +3817,7 @@ public:
|
|||
|
||||
if(IsVerbose())
|
||||
{
|
||||
dbg_msg("vulkan", "device prop: non-coherent align: %" PRIu64 ", optimal image copy align: %" PRIu64 ", max texture size: %u, max sampler anisotropy: %u", (size_t)m_NonCoherentMemAlignment, (size_t)m_OptimalImageCopyMemAlignment, m_MaxTextureSize, m_MaxSamplerAnisotropy);
|
||||
dbg_msg("vulkan", "device prop: non-coherent align: %zu, optimal image copy align: %zu, max texture size: %u, max sampler anisotropy: %u", (size_t)m_NonCoherentMemAlignment, (size_t)m_OptimalImageCopyMemAlignment, m_MaxTextureSize, m_MaxSamplerAnisotropy);
|
||||
dbg_msg("vulkan", "device prop: min uniform align: %u, multi sample: %u", m_MinUniformAlign, (uint32_t)m_MaxMultiSample);
|
||||
}
|
||||
}
|
||||
|
@ -7639,7 +7634,7 @@ public:
|
|||
|
||||
if(IsVerbose() && s_BenchmarkRenderThreads)
|
||||
{
|
||||
dbg_msg("vulkan", "render thread %" PRIu64 " took %d ns to finish", ThreadIndex, (int)(time_get_nanoseconds() - ThreadRenderTime).count());
|
||||
dbg_msg("vulkan", "render thread %zu took %d ns to finish", ThreadIndex, (int)(time_get_nanoseconds() - ThreadRenderTime).count());
|
||||
}
|
||||
|
||||
pThread->m_IsRendering = false;
|
||||
|
|
Loading…
Reference in a new issue