SWDEV-532824 - Fixed log_printf errors for codeql (#427)
Co-authored-by: Jimbo Xie <jiabaxie@amd.com>
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
3bbc8bd170
commit
c88f345229
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user