am 6a58c4f3: am 33e86e00: Merge "libcutils: add method to get klog level"

* commit '6a58c4f342fa104fbabcd195561b90966f227a76':
  libcutils: add method to get klog level
This commit is contained in:
Alex Ray 2014-03-08 02:00:29 +00:00 committed by Android Git Automerger
commit db480f7516
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;
}