summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-05 02:45:34 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-05 02:45:34 +0000
commit004623ebcc71eb9833dbb438fb9fb71871173c75 (patch)
treec08bf6bd265c86086532f511505c834adbbef36e
parentc11edc468200a7f3b3e0fd67c0bdfc5f007c2469 (diff)
Fix a buglet that shows up on powerpc
-rw-r--r--ldso/ldso/dl-elf.c4
-rw-r--r--ldso/ldso/readelflib1.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index afb5a3b75..683dad090 100644
--- a/ldso/ldso/dl-elf.c
+++ b/ldso/ldso/dl-elf.c
@@ -849,7 +849,7 @@ void *_dl_malloc(int size)
#if 0
#ifdef __SUPPORT_LD_DEBUG_EARLY__
- _dl_dprintf(_dl_debug_file, "malloc: request for %d bytes\n", size);
+ _dl_dprintf(2, "malloc: request for %d bytes\n", size);
#endif
#endif
@@ -858,7 +858,7 @@ void *_dl_malloc(int size)
if (_dl_malloc_addr - _dl_mmap_zero + size > 4096) {
#ifdef __SUPPORT_LD_DEBUG_EARLY__
- _dl_dprintf(_dl_debug_file, "malloc: mmapping more memory\n");
+ _dl_dprintf(2, "malloc: mmapping more memory\n");
#endif
_dl_mmap_zero = _dl_malloc_addr = _dl_mmap((void *) 0, size,
PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0);
diff --git a/ldso/ldso/readelflib1.c b/ldso/ldso/readelflib1.c
index afb5a3b75..683dad090 100644
--- a/ldso/ldso/readelflib1.c
+++ b/ldso/ldso/readelflib1.c
@@ -849,7 +849,7 @@ void *_dl_malloc(int size)
#if 0
#ifdef __SUPPORT_LD_DEBUG_EARLY__
- _dl_dprintf(_dl_debug_file, "malloc: request for %d bytes\n", size);
+ _dl_dprintf(2, "malloc: request for %d bytes\n", size);
#endif
#endif
@@ -858,7 +858,7 @@ void *_dl_malloc(int size)
if (_dl_malloc_addr - _dl_mmap_zero + size > 4096) {
#ifdef __SUPPORT_LD_DEBUG_EARLY__
- _dl_dprintf(_dl_debug_file, "malloc: mmapping more memory\n");
+ _dl_dprintf(2, "malloc: mmapping more memory\n");
#endif
_dl_mmap_zero = _dl_malloc_addr = _dl_mmap((void *) 0, size,
PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0);