SWDEV-245381 : Updated guarantee error messages to print based on BUILD_TYPE

Change-Id: Ia21039326b440f6d807a6495a9a05dd52b384c76
This commit is contained in:
agodavar
2021-01-05 04:53:59 -05:00
parent 7bcd555602
commit 69a786e8d1
5 changed files with 16 additions and 9 deletions
+2 -2
View File
@@ -98,7 +98,7 @@ void MemObjMap::AddMemObj(const void* k, amd::Memory* v) {
if (!rval.second) {
DevLogPrintfError("Memobj map already has an entry for ptr: 0x%x",
reinterpret_cast<uintptr_t>(k));
guarantee(false);
guarantee(false, "Memobj map already has an entry for ptr");
}
}
@@ -108,7 +108,7 @@ void MemObjMap::RemoveMemObj(const void* k) {
if (rval != 1) {
DevLogPrintfError("Memobj map does not have ptr: 0x%x",
reinterpret_cast<uintptr_t>(k));
guarantee(false);
guarantee(false, "Memobj map does not have ptr");
}
}