SWDEV-301667 - Logging refactor

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

Change-Id: I25eb2242a1f1e87cf811bcc373d1d485b2e027a8


[ROCm/clr commit: 058b2702db]
This commit is contained in:
Saleel Kudchadker committed 2023-12-07 12:12:57 -05:00
1 szülő 3dfef513b1
commit f969d89aa4
16 files changed
+77 -78

No files matched your search

@@ -503,7 +503,7 @@ inline hipError_t ihipGetTextureAlignmentOffset(size_t* offset,
// If the device memory pointer was returned from hipMalloc(),
// the offset is guaranteed to be 0 and NULL may be passed as the offset parameter.
if ((alignedOffset != 0) && (offset == nullptr)) {
LogPrintfError("Texture object not aligned with offset %u \n", alignedOffset);
LogPrintfError("Texture object not aligned with offset %u", alignedOffset);
return hipErrorInvalidValue;
}
@@ -896,7 +896,7 @@ hipError_t hipTexRefGetAddressMode(hipTextureAddressMode* pam,
if ((dim != 0) && (dim != 1)) {
LogPrintfError(
"Currently only 2 dimensions (0,1) are valid,"
"dim : %d \n",
"dim : %d",
dim);
HIP_RETURN(hipErrorInvalidValue);
}
@@ -918,7 +918,7 @@ hipError_t hipTexRefSetAddressMode(textureReference* texRef,
if ((dim < 0) || (dim > 2)) {
LogPrintfError(
"Currently only 3 dimensions (0,1,2) are valid,"
"dim : %d \n",
"dim : %d",
dim);
HIP_RETURN(hipErrorInvalidValue);
}
@@ -1022,7 +1022,7 @@ hipError_t hipTexRefGetAddress(hipDeviceptr_t* dptr,
// TODO use ihipGetTextureObjectResourceDesc() to not pollute the API trace.
hipError_t error = ihipGetTextureObjectResourceDesc(&resDesc, texRef->textureObject);
if (error != hipSuccess) {
LogPrintfError("hipGetTextureObjectResourceDesc failed with error code: %s \n",
LogPrintfError("hipGetTextureObjectResourceDesc failed with error code: %s",
ihipGetErrorName(error));
HIP_RETURN(error);
}