mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-24 11:14:01 +00:00
接着上个
This commit is contained in:
19
clks.local.bak/include/clks/log.h
Normal file
19
clks.local.bak/include/clks/log.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef CLKS_LOG_H
|
||||
#define CLKS_LOG_H
|
||||
|
||||
#include <clks/types.h>
|
||||
|
||||
enum clks_log_level {
|
||||
CLKS_LOG_DEBUG = 0,
|
||||
CLKS_LOG_INFO = 1,
|
||||
CLKS_LOG_WARN = 2,
|
||||
CLKS_LOG_ERROR = 3,
|
||||
};
|
||||
|
||||
void clks_log(enum clks_log_level level, const char *tag, const char *message);
|
||||
void clks_log_hex(enum clks_log_level level, const char *tag, const char *label, u64 value);
|
||||
|
||||
u64 clks_log_journal_count(void);
|
||||
clks_bool clks_log_journal_read(u64 index_from_oldest, char *out_line, usize out_line_size);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user