SWDEV-301667 - Logging refactor

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

Change-Id: I25eb2242a1f1e87cf811bcc373d1d485b2e027a8
This commit is contained in:
Saleel Kudchadker
2023-12-07 01:32:20 +00:00
parent 59a6a6c12e
commit 058b2702db
16 changed files with 77 additions and 78 deletions
+3 -3
View File
@@ -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);
}