SWDEV-301667 - Use right macros and level for logging

- Sometimes we want to mask out kernel names, use right level for kernel
logging

Change-Id: Ideae9647c57b86ae390ff2f4131f6d8c6df5c086


[ROCm/clr commit: f1adecd186]
This commit is contained in:
Saleel Kudchadker
2024-03-05 20:44:27 +00:00
parent 8947420e41
commit 54d326dfa1
4 changed files with 6 additions and 9 deletions
+2 -2
View File
@@ -1477,7 +1477,7 @@ void Kernel::InitPrintf(const std::vector<std::string>& printfInfoStrings) {
} while (end != std::string::npos);
if (tokens.size() < 2) {
ClPrint(amd::LOG_WARNING, amd::LOG_KERN, "Invalid PrintInfo string: \"%s\"", str.c_str());
LogPrintfError("Invalid PrintInfo string: \"%s\"", str.c_str());
continue;
}
@@ -1503,7 +1503,7 @@ void Kernel::InitPrintf(const std::vector<std::string>& printfInfoStrings) {
// ensure that we have the correct number of tokens
if (tokens.size() < end + 1 /*last token is the fmtString*/) {
ClPrint(amd::LOG_WARNING, amd::LOG_KERN, "Invalid PrintInfo string: \"%s\"", str.c_str());
LogPrintfError("Invalid PrintInfo string: \"%s\"", str.c_str());
continue;
}