KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
dbglog.h File Reference

A debugging log. More...

#include <kos/cdefs.h>
#include <kos/opts.h>

Go to the source code of this file.

Macros

#define dbglog(lvl, ...)
 
#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.
 

Functions

void __real_dbglog (int level, const char *fmt,...) __printflike(2
 Kernel debugging printf.
 
void dbglog_set_level (int level)
 Set the debugging log level.
 

Detailed Description

A debugging log.

This file contains declarations related a debugging log. This log can be used to restrict log messages, for instance to make it so that only the most urgent of messages get printed for a release version of a program.

Author
Megan Potter

Macro Definition Documentation

◆ dbglog

#define dbglog ( lvl,
... )
Value:
do { \
if ((lvl) <= DBGLOG_LEVEL_SUPPORT) \
__real_dbglog(lvl, __VA_ARGS__); \
} while(0)
#define DBGLOG_LEVEL_SUPPORT
Definition opts.h:56