summaryrefslogtreecommitdiffstats
path: root/liblog/include
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2018-06-25 11:48:58 -0700
committerPirama Arumuga Nainar <pirama@google.com>2018-06-25 11:52:54 -0700
commita2df1ef4413144fe7d09a22f4750df05e83c13fb (patch)
tree703bdbfdcb8acbe75e5dfb13f492030fa72eb322 /liblog/include
parent8e52362e45c7d14d30c158e3c5f05e53e499bea4 (diff)
downloadsystem_core-a2df1ef4413144fe7d09a22f4750df05e83c13fb.tar.gz
system_core-a2df1ef4413144fe7d09a22f4750df05e83c13fb.tar.bz2
system_core-a2df1ef4413144fe7d09a22f4750df05e83c13fb.zip
Do not customize __format__ for Windows/MinGW to gnu_printf
Bug: http://b/69933090 Bug: http://b/69933068 MinGW uses gnu_printf to force C99 printf analysis with GCC, but clang does not support gnu_printf. So just use the default that's used for other platforms. This also mirrors upstream commit https://sourceforge.net/p/mingw-w64/mingw-w64/ci/015e637b4b24d9915162ab877ed539ad0e657951/. Test: m native-host-cross with Clang. Change-Id: I3deb266d70e25296c4ae1d58637afbabc3d949c1
Diffstat (limited to 'liblog/include')
-rw-r--r--liblog/include/android/log.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/liblog/include/android/log.h b/liblog/include/android/log.h
index 52cbe8b71..ee9220d4a 100644
--- a/liblog/include/android/log.h
+++ b/liblog/include/android/log.h
@@ -115,16 +115,8 @@ int __android_log_write(int prio, const char* tag, const char* text);
*/
int __android_log_print(int prio, const char* tag, const char* fmt, ...)
#if defined(__GNUC__)
-#ifdef __USE_MINGW_ANSI_STDIO
-#if __USE_MINGW_ANSI_STDIO
- __attribute__((__format__(gnu_printf, 3, 4)))
-#else
__attribute__((__format__(printf, 3, 4)))
#endif
-#else
- __attribute__((__format__(printf, 3, 4)))
-#endif
-#endif
;
/**
@@ -133,16 +125,8 @@ int __android_log_print(int prio, const char* tag, const char* fmt, ...)
*/
int __android_log_vprint(int prio, const char* tag, const char* fmt, va_list ap)
#if defined(__GNUC__)
-#ifdef __USE_MINGW_ANSI_STDIO
-#if __USE_MINGW_ANSI_STDIO
- __attribute__((__format__(gnu_printf, 3, 0)))
-#else
- __attribute__((__format__(printf, 3, 0)))
-#endif
-#else
__attribute__((__format__(printf, 3, 0)))
#endif
-#endif
;
/**
@@ -164,16 +148,8 @@ void __android_log_assert(const char* cond, const char* tag, const char* fmt,
...)
#if defined(__GNUC__)
__attribute__((__noreturn__))
-#ifdef __USE_MINGW_ANSI_STDIO
-#if __USE_MINGW_ANSI_STDIO
- __attribute__((__format__(gnu_printf, 3, 4)))
-#else
- __attribute__((__format__(printf, 3, 4)))
-#endif
-#else
__attribute__((__format__(printf, 3, 4)))
#endif
-#endif
;
#ifndef log_id_t_defined