git://stoneship.org.uk
/
bootloader
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Initial import of the bootloader code
[bootloader]
/
cli
/
log.h
1
/* log.c */
2
3
enum log_types {
4
LOG_DEBUG, LOG_ERROR, LOG_INFO
5
};
6
7
#define logd(...) logit(LOG_DEBUG, __VA_ARGS__)
8
#define loge(...) logit(LOG_ERROR, __VA_ARGS__)
9
#define logi(...) logit(LOG_INFO, __VA_ARGS__)
10
11
extern int debug;
12
13
void logit(int type, const char *format, ...);