diff options
author | Elliott Hughes <enh@google.com> | 2013-03-12 10:40:45 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-03-12 11:26:56 -0700 |
commit | ca0c11bd823f37f03cc8067cb182876827d5275a (patch) | |
tree | b6d10789c2be00f069e643a70cb9e29223f0e07d /linker/linker_debug.h | |
parent | 6b4c77f854c079138d552608b9df5fa3035f0fcc (diff) | |
download | android_bionic-ca0c11bd823f37f03cc8067cb182876827d5275a.tar.gz android_bionic-ca0c11bd823f37f03cc8067cb182876827d5275a.tar.bz2 android_bionic-ca0c11bd823f37f03cc8067cb182876827d5275a.zip |
Use more types than just 'unsigned' in the linker.
Still chipping away at the situation where every variable in the
linker was of type 'unsigned'. This patch switches counts over to
being size_t and adds an explicit type for init/fini function pointers
and arrays of function pointers.
Also improve logging from CallArray.
Also remove trailing "\n"s from log messages.
Change-Id: Ie036d2622caac50f4d29f0570888bb527661d77e
Diffstat (limited to 'linker/linker_debug.h')
-rw-r--r-- | linker/linker_debug.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linker/linker_debug.h b/linker/linker_debug.h index 6aeb9ac1e..8fc235fbb 100644 --- a/linker/linker_debug.h +++ b/linker/linker_debug.h @@ -63,14 +63,14 @@ __LIBC_HIDDEN__ extern int gLdDebugVerbosity; #if LINKER_DEBUG_TO_LOG -#define _PRINTVF(v,x...) \ - do { \ - if (gLdDebugVerbosity > (v)) __libc_format_log(5-(v),"linker",x); \ +#define _PRINTVF(v,x...) \ + do { \ + if (gLdDebugVerbosity > (v)) __libc_format_log(5-(v),"linker",x); \ } while (0) #else /* !LINKER_DEBUG_TO_LOG */ -#define _PRINTVF(v,x...) \ - do { \ - if (gLdDebugVerbosity > (v)) __libc_format_fd(1, x); \ +#define _PRINTVF(v,x...) \ + do { \ + if (gLdDebugVerbosity > (v)) { __libc_format_fd(1, x); write(1, "\n", 1); } \ } while (0) #endif /* !LINKER_DEBUG_TO_LOG */ |