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/ld-uClibc.c | |
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/ld-uClibc.c')
-rw-r--r-- | ldso/ldso/ld-uClibc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ldso/ldso/ld-uClibc.c b/ldso/ldso/ld-uClibc.c index 1da2b3466..c6dc5f628 100644 --- a/ldso/ldso/ld-uClibc.c +++ b/ldso/ldso/ld-uClibc.c @@ -219,11 +219,9 @@ void _dl_boot(unsigned int args) } #ifdef DL_DEBUG SEND_STDERR("ELF header ="); - SEND_STDERR(_dl_simple_ltoahex(load_addr)); - SEND_STDERR("\n"); + SEND_ADDRESS_STDERR(load_addr, 1); #endif - /* Locate the global offset table. Since this code must be PIC * we can take advantage of the magic offset register, if we * happen to know what that is for this architecture. If not, @@ -288,8 +286,7 @@ found_got: dpnt = (Elf32_Dyn *) (*got + load_addr); #ifdef DL_DEBUG SEND_STDERR("First Dynamic section entry="); - SEND_STDERR(_dl_simple_ltoahex((unsigned long)dpnt)); - SEND_STDERR("\n"); + SEND_ADDRESS_STDERR(dpnt, 1); #endif @@ -1012,7 +1009,7 @@ void *_dl_malloc(int size) #ifdef DL_DEBUG SEND_STDERR("malloc: request for "); - SEND_STDERR(_dl_simple_itoa(size)); + SEND_NUMBER_STDERR(size, 0); SEND_STDERR(" bytes\n"); #endif |