From c9c58f78a8c336ee0c9356d191d7a43b1e85db06 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 20 Mar 2023 01:43:37 +0200 Subject: [PATCH] Wrong arguments for warn message --- SystemCalls/Native.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SystemCalls/Native.cpp b/SystemCalls/Native.cpp index d1c40bd..f89d68a 100644 --- a/SystemCalls/Native.cpp +++ b/SystemCalls/Native.cpp @@ -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; }