Merge "liblog: LIBLOG_ABI_PRIVATE __android_log_is_debuggable()"

am: 915d620359

Change-Id: I66547a2d32c96b9baffccb8a391a15a155faf123
This commit is contained in:
Mark Salyzyn 2016-10-17 21:57:22 +00:00 committed by android-build-merger
commit 3132543d83
4 changed files with 8 additions and 2 deletions

View file

@ -130,6 +130,8 @@ int __android_log_security_bwrite(int32_t tag, const void *payload, size_t len);
int __android_log_security_bswrite(int32_t tag, const char *payload);
int __android_log_security(); /* Device Owner is present */
int __android_log_is_debuggable();
#if defined(__cplusplus)
}
#endif

View file

@ -727,3 +727,8 @@ LIBLOG_ABI_PUBLIC int __android_log_is_loggable_len(int prio,
int logLevel = def;
return logLevel >= 0 && prio >= logLevel;
}
LIBLOG_ABI_PRIVATE int __android_log_is_debuggable()
{
return 1;
}

View file

@ -274,7 +274,7 @@ LIBLOG_ABI_PUBLIC int __android_log_is_loggable(int prio,
return logLevel >= 0 && prio >= logLevel;
}
LIBLOG_HIDDEN int __android_log_is_debuggable()
LIBLOG_ABI_PRIVATE int __android_log_is_debuggable()
{
static uint32_t serial;
static struct cache tag_cache;

View file

@ -157,7 +157,6 @@ static inline uid_t __android_log_uid() { return getuid(); }
LIBLOG_HIDDEN void __android_log_lock();
LIBLOG_HIDDEN int __android_log_trylock();
LIBLOG_HIDDEN void __android_log_unlock();
LIBLOG_HIDDEN int __android_log_is_debuggable();
__END_DECLS