Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
debug.h File Reference
#include <type.h>

Go to the source code of this file.

Macros

#define DEBUG_DEBUG_FG   0x00FF00
 
#define KDEBUG(...)
 
#define KASSERT(...)
 

Enumerations

enum  DEBUG_LEVEL {
  DEBUG_LEVEL_DEBUG , DEBUG_LEVEL_INFO , DEBUG_LEVEL_WARN , DEBUG_LEVEL_ERROR ,
  DEBUG_LEVEL_OK
}
 

Functions

void kernel_debug_impl (const char *file_, uint16_t line_num_, DEBUG_LEVEL level_, const char *message_,...)
 
void kernel_assert_impl (const char *file_, uint16_t line_num_)
 

Macro Definition Documentation

◆ DEBUG_DEBUG_FG

#define DEBUG_DEBUG_FG   0x00FF00

Definition at line 14 of file debug.h.

◆ KASSERT

#define KASSERT ( ...)
Value:
kernel_assert_impl(__FILE__, __LINE__)
void kernel_assert_impl(const char *file_, uint16_t line_num_)

Definition at line 18 of file debug.h.

◆ KDEBUG

#define KDEBUG ( ...)
Value:
kernel_debug_impl(__FILE__, __LINE__, __VA_ARGS__)
void kernel_debug_impl(const char *file_, uint16_t line_num_, DEBUG_LEVEL level_, const char *message_,...)
Definition debug.c:31

Definition at line 16 of file debug.h.

Referenced by INIT(), INIT(), INIT(), pmm_log_usage(), vfs_event_handler(), vfs_umount(), and vxVoxmoInstall().

Enumeration Type Documentation

◆ DEBUG_LEVEL

Enumerator
DEBUG_LEVEL_DEBUG 
DEBUG_LEVEL_INFO 
DEBUG_LEVEL_WARN 
DEBUG_LEVEL_ERROR 
DEBUG_LEVEL_OK 

Definition at line 6 of file debug.h.

Function Documentation

◆ kernel_assert_impl()

void kernel_assert_impl ( const char * file_,
uint16_t line_num_ )

◆ kernel_debug_impl()

void kernel_debug_impl ( const char * file_,
uint16_t line_num_,
DEBUG_LEVEL level_,
const char * message_,
... )