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 <unistd.h>
#include <stdarg.h>
#include <kos/fs.h>

Go to the source code of this file.

Macros

#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.
 

Functions

void 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