diff --git a/h_malloc.c b/h_malloc.c index aca3f02..7472046 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -1883,12 +1883,13 @@ EXPORT int h_malloc_info(int options, FILE *fp) { mutex_unlock(&c->lock); if (nmalloc || ndalloc || slab_allocated || allocated) { - fprintf(fp, "", class, size_classes[class]); - fprintf(fp, "%" PRIu64 "", nmalloc); - fprintf(fp, "%" PRIu64 "", ndalloc); - fprintf(fp, "%zu", slab_allocated); - fprintf(fp, "%zu", allocated); - fputs("", fp); + fprintf(fp, "" + "%" PRIu64 "" + "%" PRIu64 "" + "%zu" + "%zu" + "", class, size_classes[class], nmalloc, ndalloc, slab_allocated, + allocated); } } @@ -1900,9 +1901,9 @@ EXPORT int h_malloc_info(int options, FILE *fp) { size_t region_allocated = ra->allocated; mutex_unlock(&ra->lock); - fprintf(fp, "", N_ARENA); - fprintf(fp, "%zu", region_allocated); - fputs("", fp); + fprintf(fp, "" + "%zu" + "", N_ARENA, region_allocated); thread_seal_metadata(); }