Wrong arguments for warn message

This commit is contained in:
Alex 2023-03-20 01:43:37 +02:00
parent ff214dc10b
commit c9c58f78a8
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -27,7 +27,8 @@ static inline bool CheckTrust(int TrustLevel)
return true;
warn("Thread %s(%lld) tried to access a system call \"%s\" with insufficient trust level",
KernelSymbolTable->GetSymbolFromAddress((uintptr_t)__builtin_extract_return_addr(__builtin_return_address(0))), TaskManager->GetCurrentThread()->Name, TaskManager->GetCurrentThread()->ID);
TaskManager->GetCurrentThread()->Name, TaskManager->GetCurrentThread()->ID,
KernelSymbolTable->GetSymbolFromAddress((uintptr_t)__builtin_extract_return_addr(__builtin_return_address(0))));
debug("Token: token=%#lx, trust=%d", token, TaskManager->GetSecurityManager()->GetTokenTrustLevel(token));
return false;
}