summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);