From d9d42bcfeb444652ae198a6bd3481ce316549e55 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Sat, 29 Jun 2024 13:15:29 +0200 Subject: kernel: Use local error codes for kernel calls. So that we know which process caused the error, and it's not global as well. Signed-off-by: Amlal EL Mahrouss --- Comm/herror.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Comm') diff --git a/Comm/herror.hxx b/Comm/herror.hxx index e5042b60..6f6abf6f 100644 --- a/Comm/herror.hxx +++ b/Comm/herror.hxx @@ -8,9 +8,9 @@ #include -#define DbgOk() (kLastError == kErrorSuccess) -#define DbgFailed() (kLastError != kErrorSuccess) -#define DbgLastError() kLastError +#define ErrLocalIsOk() (kLastError == kErrorSuccess) +#define ErrLocalFailed() (kLastError != kErrorSuccess) +#define ErrLocal() kLastError typedef SInt32 HError; -- cgit v1.2.3