summaryrefslogtreecommitdiffstats
path: root/libc/private
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2009-07-08 14:22:41 +0200
committerDavid 'Digit' Turner <digit@google.com>2009-07-10 00:32:08 +0200
commitc4eee3765bf9dd81ff055e70ff7daa83a3926d2a (patch)
treefca5f9156dba6f7a3278699da9665c138c08f816 /libc/private
parent6ee8f1b0444c0db94931d2cd64427ded8fba38b0 (diff)
downloadbionic-c4eee3765bf9dd81ff055e70ff7daa83a3926d2a.zip
bionic-c4eee3765bf9dd81ff055e70ff7daa83a3926d2a.tar.gz
bionic-c4eee3765bf9dd81ff055e70ff7daa83a3926d2a.tar.bz2
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
Diffstat (limited to 'libc/private')
-rw-r--r--libc/private/logd.h3
1 files changed, 3 insertions, 0 deletions
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 <stdarg.h>
+
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 */