* commit '6a58c4f342fa104fbabcd195561b90966f227a76': libcutils: add method to get klog level
This commit is contained in:
commit
db480f7516
2 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
__BEGIN_DECLS
|
||||
|
||||
void klog_init(void);
|
||||
int klog_get_level(void);
|
||||
void klog_set_level(int level);
|
||||
void klog_close(void);
|
||||
void klog_write(int level, const char *fmt, ...)
|
||||
|
|
|
@ -28,6 +28,10 @@
|
|||
static int klog_fd = -1;
|
||||
static int klog_level = KLOG_DEFAULT_LEVEL;
|
||||
|
||||
int klog_get_level(void) {
|
||||
return klog_level;
|
||||
}
|
||||
|
||||
void klog_set_level(int level) {
|
||||
klog_level = level;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue