diff options
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/malloc.c | 2 | ||||
-rw-r--r-- | malloc/mtrace.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index 9614954975..b57232148f 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -5005,7 +5005,7 @@ __malloc_stats (void) if (ar_ptr == &main_arena) break; } - fprintf (stderr, "Total (incl. mmap):\n"); + fputs ("Total (incl. mmap):\n", stderr); fprintf (stderr, "system bytes = %10u\n", system_b); fprintf (stderr, "in use bytes = %10u\n", in_use_b); fprintf (stderr, "max mmap regions = %10u\n", (unsigned int) mp_.max_n_mmaps); diff --git a/malloc/mtrace.c b/malloc/mtrace.c index 9064f209ec..aa2ec4b7cb 100644 --- a/malloc/mtrace.c +++ b/malloc/mtrace.c @@ -38,7 +38,6 @@ #include <libio/iolibio.h> #define setvbuf(s, b, f, l) _IO_setvbuf (s, b, f, l) -#define fwrite(buf, size, count, fp) _IO_fwrite (buf, size, count, fp) #include <kernel-features.h> @@ -304,7 +303,7 @@ mtrace (void) /* Be sure it doesn't malloc its buffer! */ malloc_trace_buffer = mtb; setvbuf (mallstream, malloc_trace_buffer, _IOFBF, TRACE_BUFFER_SIZE); - fprintf (mallstream, "= Start\n"); + fputs ("= Start\n", mallstream); tr_old_free_hook = __free_hook; __free_hook = tr_freehook; tr_old_malloc_hook = __malloc_hook; @@ -343,6 +342,6 @@ muntrace (void) __realloc_hook = tr_old_realloc_hook; __memalign_hook = tr_old_memalign_hook; - fprintf (f, "= End\n"); + fputs ("= End\n", f); fclose (f); } |