Unify debugging setup in sys folder files.

This commit is contained in:
Enrico Fraccaroli
2023-01-19 09:57:44 -05:00
parent b6403ff571
commit 5a84cd5e44
2 changed files with 11 additions and 8 deletions
+5 -7
View File
@@ -3,18 +3,16 @@
/// @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__ "[MODULE]"
/// 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__ "[MODULE]" ///< Change header.
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE ///< Set log level.
#include "io/debug.h" // Include debugging functions.
#include "mem/slab.h"
#include "sys/module.h"
#include "string.h"
#include "sys/bitops.h"
#include "io/debug.h"
/// Defined in kernel.ld, points at the end of kernel's data segment.
extern void *_kernel_end;
+6 -1
View File
@@ -3,10 +3,15 @@
/// @copyright (c) 2014-2022 This file is distributed under the MIT License.
/// See LICENSE.md for details.
// Setup the logging for this file (do this before any other include).
#include "sys/kernel_levels.h" // Include kernel log levels.
#define __DEBUG_HEADER__ "[UTSNAM]" ///< Change header.
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE ///< Set log level.
#include "io/debug.h" // Include debugging functions.
#include "string.h"
#include "sys/utsname.h"
#include "version.h"
#include "io/debug.h"
#include "sys/errno.h"
#include "fcntl.h"
#include "fs/vfs.h"