From c4eee3765bf9dd81ff055e70ff7daa83a3926d2a Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Wed, 8 Jul 2009 14:22:41 +0200 Subject: Prevent a crash in the memory leak checker (which happened in chk_free()) Simplify the code a little, removing un-necessary mutex locks/unlocks. Provide slightly better diagnostic message in case of corruption. Use snprintf/strlcat instead of sprintf/strcat --- libc/private/logd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libc/private') diff --git a/libc/private/logd.h b/libc/private/logd.h index 671cb48..43fa742 100644 --- a/libc/private/logd.h +++ b/libc/private/logd.h @@ -28,6 +28,8 @@ #ifndef _ANDROID_BIONIC_LOGD_H #define _ANDROID_BIONIC_LOGD_H +#include + enum { ANDROID_LOG_UNKNOWN = 0, ANDROID_LOG_DEFAULT, /* only for SetMinPriority() */ @@ -43,5 +45,6 @@ enum { }; int __libc_android_log_print(int prio, const char *tag, const char *fmt, ...); +int __libc_android_log_vprint(int prio, const char *tag, const char *fmt, va_list ap); #endif /* _ANDROID_BIONIC_LOGD_H */ -- cgit v1.1