SWDEV-532824 - Fixed log_printf errors for codeql (#427)

Co-authored-by: Jimbo Xie <jiabaxie@amd.com>
This commit is contained in:
Xie, Jiabao(Jimbo)
2025-07-31 11:17:41 -04:00
zatwierdzone przez GitHub
rodzic 3bbc8bd170
commit c88f345229
2 zmienionych plików z 2 dodań i 2 usunięć
+1 -1
Wyświetl plik
@@ -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);
+1 -1
Wyświetl plik
@@ -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);