Unify debugging setup in system folder files.

This commit is contained in:
Enrico Fraccaroli
2023-01-19 09:58:31 -05:00
parent 5a84cd5e44
commit 4f99b6217f
2 changed files with 10 additions and 13 deletions
+5 -7
View File
@@ -3,12 +3,11 @@
/// @copyright (c) 2014-2022 This file is distributed under the MIT License.
/// See LICENSE.md for details.
// Include the kernel log levels.
#include "sys/kernel_levels.h"
/// Change the header.
#define __DEBUG_HEADER__ "[SIGNAL]"
/// Set the log level.
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
// Setup the logging for this file (do this before any other include).
#include "sys/kernel_levels.h" // Include kernel log levels.
#define __DEBUG_HEADER__ "[SIGNAL]" ///< Change header.
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE ///< Set log level.
#include "io/debug.h" // Include debugging functions.
#include "system/signal.h"
#include "process/wait.h"
@@ -16,7 +15,6 @@
#include "process/process.h"
#include "sys/errno.h"
#include "assert.h"
#include "io/debug.h"
#include "string.h"
#include "klib/irqflags.h"
#include "klib/stack_helper.h"
+5 -6
View File
@@ -3,12 +3,11 @@
/// @copyright (c) 2014-2022 This file is distributed under the MIT License.
/// See LICENSE.md for details.
// Include the kernel log levels.
#include "sys/kernel_levels.h"
/// Change the header.
#define __DEBUG_HEADER__ "[SYSCLL]"
/// Set the log level.
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
// Setup the logging for this file (do this before any other include).
#include "sys/kernel_levels.h" // Include kernel log levels.
#define __DEBUG_HEADER__ "[SYSCLL]" ///< Change header.
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE ///< Set log level.
#include "io/debug.h" // Include debugging functions.
#include "devices/fpu.h"
#include "mem/kheap.h"