diff --git a/rocclr/device/pal/palvirtual.hpp b/rocclr/device/pal/palvirtual.hpp index e5d687daee..1bbfe8e960 100644 --- a/rocclr/device/pal/palvirtual.hpp +++ b/rocclr/device/pal/palvirtual.hpp @@ -699,7 +699,7 @@ class VirtualGPU : public device::VirtualDevice { inline void VirtualGPU::logVmMemory(const std::string name, const Memory* memory) { if (PAL_EMBED_KERNEL_MD || (AMD_LOG_LEVEL >= amd::LOG_INFO)) { char buf[256]; - sprintf(buf, "%s = ptr:[%p-%p] size:[%lu] heap[%d]", name.c_str(), + sprintf(buf, "%s = ptr:[%p-%p] size:[%llu] heap[%d]", name.c_str(), reinterpret_cast(memory->vmAddress()), reinterpret_cast(memory->vmAddress() + memory->size()), memory->iMem()->Desc().size, memory->iMem()->Desc().heaps[0]);