diff options
Diffstat (limited to 'liblog/fake_log_device.c')
-rw-r--r-- | liblog/fake_log_device.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/liblog/fake_log_device.c b/liblog/fake_log_device.c index cf3dc50..8a8ece2 100644 --- a/liblog/fake_log_device.c +++ b/liblog/fake_log_device.c @@ -689,3 +689,9 @@ ssize_t fakeLogWritev(int fd, const struct iovec* vector, int count) /* Assume that open() was called first. */ return redirectWritev(fd, vector, count); } + +int __android_log_is_loggable(int prio, const char *tag __unused, int def) +{ + int logLevel = def; + return logLevel >= 0 && prio >= logLevel; +} |