XenevaOS
Loading...
Searching...
No Matches
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
47
48typedef void (*BLogSinkFunc)(const char* data, uint32_t len, void* ctx);
49
54extern void B_KLogInit();
60AU_EXTERN AU_EXPORT void BPrintK(BLogLevel level, const char* fmt, ...);
61
62#endif
#define AU_EXTERN
Definition aurora.h:55
#define AU_EXPORT
Definition aurora.h:41
unsigned int uint32_t
Definition acefiex.h:163
void(* BLogSinkFunc)(const char *data, uint32_t len, void *ctx)
Definition klog.h:48
AU_EXTERN AU_EXPORT void BPrintK(BLogLevel level, const char *fmt,...)
BPrintK – print formatted string to circular buffer.
Definition klog.c:166
BLogLevel
Definition klog.h:40
@ BORDOISILA_INFO
Definition klog.h:44
@ BORDOISILA_WARN
Definition klog.h:43
@ BORDOISILA_DEBUG
Definition klog.h:45
@ BORDOISILA_EMERG
Definition klog.h:41
@ BORDOISILA_ERROR
Definition klog.h:42
void B_KLogInit()
B_KLogInit – initialize bordoisila logging system.
Definition klog.c:81