XenevaOS
Loading...
Searching...
No Matches
XenevaOS
BaseHdr
Log
klog.h
Go to the documentation of this file.
1
30
#ifndef __KERNEL_LOG_H__
31
#define __KERNEL_LOG_H__
32
33
#include <stdint.h>
34
#include <aurora.h>
35
36
#define BORDOISILA_DEBUG_LEVEL_COUNT 5
40
typedef
enum
{
41
BORDOISILA_EMERG
= 0,
42
BORDOISILA_ERROR
,
43
BORDOISILA_WARN
,
44
BORDOISILA_INFO
,
45
BORDOISILA_DEBUG
,
46
}
BLogLevel
;
47
48
typedef
void (*
BLogSinkFunc
)(
const
char
* data,
uint32_t
len,
void
* ctx);
49
54
extern
void
B_KLogInit
();
60
AU_EXTERN
AU_EXPORT
void
BPrintK
(
BLogLevel
level,
const
char
* fmt, ...);
61
62
#endif
AU_EXTERN
#define AU_EXTERN
Definition
aurora.h:55
AU_EXPORT
#define AU_EXPORT
Definition
aurora.h:41
uint32_t
unsigned int uint32_t
Definition
acefiex.h:163
BLogSinkFunc
void(* BLogSinkFunc)(const char *data, uint32_t len, void *ctx)
Definition
klog.h:48
BPrintK
AU_EXTERN AU_EXPORT void BPrintK(BLogLevel level, const char *fmt,...)
BPrintK – print formatted string to circular buffer.
Definition
klog.c:166
BLogLevel
BLogLevel
Definition
klog.h:40
BORDOISILA_INFO
@ BORDOISILA_INFO
Definition
klog.h:44
BORDOISILA_WARN
@ BORDOISILA_WARN
Definition
klog.h:43
BORDOISILA_DEBUG
@ BORDOISILA_DEBUG
Definition
klog.h:45
BORDOISILA_EMERG
@ BORDOISILA_EMERG
Definition
klog.h:41
BORDOISILA_ERROR
@ BORDOISILA_ERROR
Definition
klog.h:42
B_KLogInit
void B_KLogInit()
B_KLogInit – initialize bordoisila logging system.
Definition
klog.c:81
Generated by
1.9.8