SWDEV-301667 - Logging refactor

- Remove newline from logging as log function internally inserts a new
line

Change-Id: I25eb2242a1f1e87cf811bcc373d1d485b2e027a8


[ROCm/clr commit: 058b2702db]
Этот коммит содержится в:
Saleel Kudchadker committed 2023-12-07 12:12:57 -05:00
1 родитель 3dfef513b1
Коммит f969d89aa4
16 files changed
+77 -78

No files matched your search

+3 -3
Просмотреть файл
@@ -81,7 +81,7 @@ hipError_t hipModuleGetFunction(hipFunction_t* hfunc, hipModule_t hmod, const ch
}
if (hipSuccess != PlatformState::instance().getDynFunc(hfunc, hmod, name)) {
LogPrintfError("Cannot find the function: %s for module: 0x%x \n", name, hmod);
LogPrintfError("Cannot find the function: %s for module: 0x%x", name, hmod);
HIP_RETURN(hipErrorNotFound);
}
@@ -104,7 +104,7 @@ hipError_t hipModuleGetGlobal(hipDeviceptr_t* dptr, size_t* bytes, hipModule_t h
}
/* Get address and size for the global symbol */
if (hipSuccess != PlatformState::instance().getDynGlobalVar(name, hmod, dptr, bytes)) {
LogPrintfError("Cannot find global Var: %s for module: 0x%x at device: %d \n", name, hmod,
LogPrintfError("Cannot find global Var: %s for module: 0x%x at device: %d", name, hmod,
ihipGetDevice());
HIP_RETURN(hipErrorNotFound);
}
@@ -825,7 +825,7 @@ hipError_t hipModuleGetTexRef(textureReference** texRef, hipModule_t hmod, const
/* Get address and size for the global symbol */
if (hipSuccess != PlatformState::instance().getDynTexRef(name, hmod, texRef)) {
LogPrintfError("Cannot get texRef for name: %s at module:0x%x \n", name, hmod);
LogPrintfError("Cannot get texRef for name: %s at module:0x%x", name, hmod);
HIP_RETURN(hipErrorNotFound);
}