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
Этот коммит содержится в:
Saleel Kudchadker
2024-03-05 20:44:27 +00:00
родитель f5ca620baa
Коммит f1adecd186
4 изменённых файлов: 6 добавлений и 9 удалений
+2 -2
Просмотреть файл
@@ -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;
}