KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
Log Levels

dbglog severity levels More...

Macros

#define DBG_DISABLED   -1
 No output allowed.
 
#define DBG_DEAD   0
 The system is dead.
 
#define DBG_CRITICAL   1
 A critical error message.
 
#define DBG_ERROR   2
 A normal error message.
 
#define DBG_WARNING   3
 Potential problem.
 
#define DBG_NOTICE   4
 Normal but significant.
 
#define DBG_INFO   5
 Informational messages.
 
#define DBG_DEBUG   6
 User debug messages.
 
#define DBG_KDEBUG   7
 Kernel debug messages.
 
#define DBG_MAX   8
 All debug outputted.
 
#define DBG_SOURCE(x)
 Verbose debugging of specific systems.
 

Detailed Description

dbglog severity levels

This is the list of levels that are allowed to be passed into the dbglog() function, representing different levels of importance.

For DBG_SOURCE() pass to it a define that controls specific debugging and if the define is defined, the logging will be outputted. If not defined the messages will only be outputted if the level is set to DBG_MAX.

Macro Definition Documentation

◆ DBG_CRITICAL

#define DBG_CRITICAL   1

A critical error message.

◆ DBG_DEAD

#define DBG_DEAD   0

The system is dead.

◆ DBG_DEBUG

#define DBG_DEBUG   6

User debug messages.

◆ DBG_DISABLED

#define DBG_DISABLED   -1

No output allowed.

◆ DBG_ERROR

#define DBG_ERROR   2

A normal error message.

◆ DBG_INFO

#define DBG_INFO   5

Informational messages.

◆ DBG_KDEBUG

#define DBG_KDEBUG   7

Kernel debug messages.

◆ DBG_MAX

#define DBG_MAX   8

All debug outputted.

◆ DBG_NOTICE

#define DBG_NOTICE   4

Normal but significant.

◆ DBG_SOURCE

#define DBG_SOURCE ( x)
Value:
#define DBG_DEAD
The system is dead.
Definition dbglog.h:67
#define DBG_MAX
All debug outputted.
Definition dbglog.h:75
#define __is_defined(macro)
Check if a macro is defined to 1.
Definition cdefs.h:189

Verbose debugging of specific systems.

◆ DBG_WARNING

#define DBG_WARNING   3

Potential problem.