From 157e1b645ab278d5aaaa09939088b8f8e9d00085 Mon Sep 17 00:00:00 2001 From: Alex Ray Date: Fri, 7 Mar 2014 12:18:22 -0800 Subject: libcutils: add method to get klog level Change-Id: I55e8311bae97703be26e57b415a8ab0a6d9b4361 --- libcutils/klog.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcutils') diff --git a/libcutils/klog.c b/libcutils/klog.c index d3c40df..fbb7b72 100644 --- a/libcutils/klog.c +++ b/libcutils/klog.c @@ -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; } -- cgit v1.1