diff --git a/hipamd/src/hip_memory.cpp b/hipamd/src/hip_memory.cpp index cb002ca162..6dfec59256 100644 --- a/hipamd/src/hip_memory.cpp +++ b/hipamd/src/hip_memory.cpp @@ -3300,7 +3300,7 @@ hipError_t hipIpcOpenMemHandle(void** dev_ptr, hipIpcMemHandle_t handle, unsigne LogPrintfError( "Cannot attach ipc_handle: with ipc_size: %u" "ipc_offset: %u flags: %u", - ihandle->psize, flags); + ihandle->psize, ihandle->poffset, flags); HIP_RETURN(hipErrorInvalidDevicePointer); } amd_mem_obj = getMemoryObject(*dev_ptr, offset); diff --git a/hipamd/src/hip_vm.cpp b/hipamd/src/hip_vm.cpp index eade8aa88b..712ce8b2f1 100644 --- a/hipamd/src/hip_vm.cpp +++ b/hipamd/src/hip_vm.cpp @@ -74,7 +74,7 @@ hipError_t hipMemAddressReserve(void** ptr, size_t size, size_t alignment, void* // If requested address was not allocated, printf error message. if (addr != nullptr && addr == *ptr) { - LogPrintfError("Requested address : 0x%x was not allocated. Allocated address : 0x%x ", *ptr); + LogPrintfError("Requested address was not allocated. Allocated address : 0x%x ", *ptr); } HIP_RETURN(hipSuccess);