Browse Source

Fix a buglet that shows up on powerpc

Eric Andersen 21 years ago
parent
commit
004623ebcc
2 changed files with 4 additions and 4 deletions
  1. 2 2
      ldso/ldso/dl-elf.c
  2. 2 2
      ldso/ldso/readelflib1.c

+ 2 - 2
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);

+ 2 - 2
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);