summaryrefslogtreecommitdiff
path: root/ldso/ldso/ld_string.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-06-15 20:14:44 +0000
committerEric Andersen <andersen@codepoet.org>2001-06-15 20:14:44 +0000
commitf5d08871d3ecec7a6daf3ec0dabcdf440b614e02 (patch)
tree4f837821303376f538e0c5b3322b36ae9bbc1520 /ldso/ldso/ld_string.h
parent5792927ed57ac3f6c655c25a4cd9d1f3f1ff5549 (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/ld_string.h')
-rw-r--r--ldso/ldso/ld_string.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/ldso/ldso/ld_string.h b/ldso/ldso/ld_string.h
index 4a3462683..46de5320f 100644
--- a/ldso/ldso/ld_string.h
+++ b/ldso/ldso/ld_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 {