diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-06-15 20:14:44 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-06-15 20:14:44 +0000 |
commit | f5d08871d3ecec7a6daf3ec0dabcdf440b614e02 (patch) | |
tree | 4f837821303376f538e0c5b3322b36ae9bbc1520 /ldso/ldso/string.h | |
parent | 5792927ed57ac3f6c655c25a4cd9d1f3f1ff5549 (diff) |
Make some nice SEND_ADDRESS_STDERR and SEND_NUMBER_STDERR macros that
operate inline, to help when debugging ldso (i.e. before we can do
things like function calls).
-Erik
Diffstat (limited to 'ldso/ldso/string.h')
-rw-r--r-- | ldso/ldso/string.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ldso/ldso/string.h b/ldso/ldso/string.h index 4a3462683..46de5320f 100644 --- a/ldso/ldso/string.h +++ b/ldso/ldso/string.h @@ -170,10 +170,9 @@ static inline char *_dl_get_last_path_component_inline(char *path) /* Early on, we can't call printf, so use this to print out * numbers using the SEND_STDERR() macro */ -static inline char *_dl_simple_ltoa_inline(unsigned long i) +static inline char *_dl_simple_ltoa_inline(char * local, unsigned long i) { /* 21 digits plus null terminator, good for 64-bit or smaller ints */ - static char local[22]; char *p = &local[21]; *p-- = '\0'; do { @@ -183,10 +182,9 @@ static inline char *_dl_simple_ltoa_inline(unsigned long i) return p + 1; } -static inline char *_dl_simple_ltoahex(unsigned long i) +static inline char *_dl_simple_ltoahex_inline(char * local, unsigned long i) { /* 21 digits plus null terminator, good for 64-bit or smaller ints */ - static char local[22]; char *p = &local[21]; *p-- = '\0'; do { |