Merge "libcutils: add method to get klog level"

This commit is contained in:
Alex Ray 2014-03-07 22:07:03 +00:00 committed by Gerrit Code Review
commit 33e86e0040
2 changed files with 5 additions and 0 deletions

View file

@ -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, ...)

View file

@ -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;
}