diff options
Diffstat (limited to 'malloc/mtrace.c')
-rw-r--r-- | malloc/mtrace.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); } |