diff options
| author | Elliott Hughes <enh@google.com> | 2013-03-15 15:30:25 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2013-03-15 16:12:58 -0700 |
| commit | 8f2a5a0b40fc82126c691d5c30131d908772aab7 (patch) | |
| tree | 0b29a5dc82395c076387edb5af9ca271a91264c0 /libc/netbsd/resolv/res_state.c | |
| parent | e23ed8c6441389a79c6504295184f7249e01a197 (diff) | |
| download | android_bionic-8f2a5a0b40fc82126c691d5c30131d908772aab7.tar.gz android_bionic-8f2a5a0b40fc82126c691d5c30131d908772aab7.tar.bz2 android_bionic-8f2a5a0b40fc82126c691d5c30131d908772aab7.zip | |
Clean up internal libc logging.
We only need one logging API, and I prefer the one that does no
allocation and is thus safe to use in any context.
Also use O_CLOEXEC when opening the /dev/log files.
Move everything logging-related into one header file.
Change-Id: Ic1e3ea8e9b910dc29df351bff6c0aa4db26fbb58
Diffstat (limited to 'libc/netbsd/resolv/res_state.c')
| -rw-r--r-- | libc/netbsd/resolv/res_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/netbsd/resolv/res_state.c b/libc/netbsd/resolv/res_state.c index e05846a93..3e1f67b82 100644 --- a/libc/netbsd/resolv/res_state.c +++ b/libc/netbsd/resolv/res_state.c @@ -42,9 +42,9 @@ #define DEBUG 0 #if DEBUG -# include <logd.h> +# include "libc_logging.h" # include <unistd.h> /* for gettid() */ -# define D(...) __libc_android_log_print(ANDROID_LOG_DEBUG,"libc", __VA_ARGS__) +# define D(...) __libc_format_log(ANDROID_LOG_DEBUG,"libc", __VA_ARGS__) #else # define D(...) do{}while(0) #endif |
