diff --git a/rocclr/device/devprogram.cpp b/rocclr/device/devprogram.cpp index 22941f8b01..4ada87fbde 100644 --- a/rocclr/device/devprogram.cpp +++ b/rocclr/device/devprogram.cpp @@ -1784,7 +1784,7 @@ bool Program::loadHSAIL() { void* bin = const_cast(amd::Hsail::ExtractSection(device().compiler(), binaryElf_, &binSize, aclTEXT, &errorCode)); if (errorCode != ACL_SUCCESS) { - LogPrintfError("Error: cannot extract ISA from compiled binary.\n"); + LogError("Error: cannot extract ISA from compiled binary."); return false; } // Call the device layer to setup all available kernels on the actual device diff --git a/rocclr/device/pal/palkernel.cpp b/rocclr/device/pal/palkernel.cpp index 1069a2a2c2..f6486dff08 100644 --- a/rocclr/device/pal/palkernel.cpp +++ b/rocclr/device/pal/palkernel.cpp @@ -99,13 +99,13 @@ bool HSAILKernel::aqlCreateHWInfo() { amd_kernel_code_t* akc = &akc_; if (!setKernelCode(sym, akc)) { - LogPrintfError("Error: setKernelCode() failed.\n"); + LogError("Error: setKernelCode() failed."); return false; } if (!sym->GetInfo(HSA_EXT_EXECUTABLE_SYMBOL_INFO_KERNEL_OBJECT_SIZE, reinterpret_cast(&codeSize_))) { - LogPrintfError("Error: sym->GetInfo() failed.\n"); + LogError("Error: sym->GetInfo() failed."); return false; } diff --git a/rocclr/device/pal/palprogram.cpp b/rocclr/device/pal/palprogram.cpp index 4982d6a029..d69cefcd5f 100644 --- a/rocclr/device/pal/palprogram.cpp +++ b/rocclr/device/pal/palprogram.cpp @@ -775,7 +775,7 @@ bool LightningProgram::setKernels(void* binary, size_t binSize, executable_ = loader_->CreateExecutable(HSA_PROFILE_FULL, nullptr); if (executable_ == nullptr) { - LogPrintfError("Error: Executable for AMD HSA Code Object isn't created.\n"); + LogError("Error: Executable for AMD HSA Code Object isn't created."); return false; } @@ -786,13 +786,13 @@ bool LightningProgram::setKernels(void* binary, size_t binSize, hsa_status_t status = executable_->LoadCodeObject(agent, code_object, nullptr); if (status != HSA_STATUS_SUCCESS) { - LogPrintfError("Error: AMD HSA Code Object loading failed.\n"); + LogError("Error: AMD HSA Code Object loading failed."); return false; } status = executable_->Freeze(nullptr); if (status != HSA_STATUS_SUCCESS) { - LogPrintfError("Error: Freezing the executable failed.\n"); + LogError("Error: Freezing the executable failed."); return false; }