From bc74ecfaf5de47056fd8a48db65c0e5aef892f0c Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Wed, 23 Jul 2014 18:05:58 -0700 Subject: [PATCH] HACK: Disable syslog going to android log. Bug: 14292866 Change-Id: I3adc448dbacfeecd32508ddccf27be3aa653e466 --- libc/bionic/syslog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libc/bionic/syslog.cpp b/libc/bionic/syslog.cpp index 29f892a20..d3b1b1eb7 100644 --- a/libc/bionic/syslog.cpp +++ b/libc/bionic/syslog.cpp @@ -46,7 +46,10 @@ void syslog(int priority, const char* fmt, ...) { va_end(args); } -void vsyslog(int priority, const char* fmt, va_list args) { +void vsyslog(int /*priority*/, const char* /*fmt*/, va_list /*args*/) { +// HACK to avoid lock up on certain devices. This will be reverted when +// that is fixed. +#if 0 // Check whether we're supposed to be logging messages of this priority. if ((syslog_priority_mask & LOG_MASK(LOG_PRI(priority))) == 0) { return; @@ -72,4 +75,5 @@ void vsyslog(int priority, const char* fmt, va_list args) { } __libc_format_log_va_list(android_log_priority, log_tag, fmt, args); +#endif }