aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-05-30 22:44:45 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-05-30 22:44:45 +0530
commit62a5881678b725cdabb27225ebae208a6e4b3f90 (patch)
tree990fe540884f3f60deef1c952bb43292a1063fa5
parent4d653a59ffeae0f46f76a40230e2cfa9587b7e7e (diff)
downloadglibc-62a5881678b725cdabb27225ebae208a6e4b3f90.tar
glibc-62a5881678b725cdabb27225ebae208a6e4b3f90.tar.gz
glibc-62a5881678b725cdabb27225ebae208a6e4b3f90.tar.bz2
glibc-62a5881678b725cdabb27225ebae208a6e4b3f90.zip
Fix formatting in malloc_info
-rw-r--r--ChangeLog4
-rw-r--r--malloc/malloc.c20
2 files changed, 14 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index d2a94b29f4..d8c416fe7f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
2014-05-30 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ * malloc/malloc (malloc_info): Fix formatting.
+
+2014-05-30 Siddhesh Poyarekar <siddhesh@redhat.com>
Roland McGrath <roland@hack.frob.com>
* malloc/malloc (malloc_info): Also print mmapped statistics.
diff --git a/malloc/malloc.c b/malloc/malloc.c
index e78f8dfe76..79b109d344 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -5146,18 +5146,18 @@ malloc_info (int options, FILE *fp)
while (ar_ptr != &main_arena);
fprintf (fp,
- "<total type=\"fast\" count=\"%zu\" size=\"%zu\"/>\n"
- "<total type=\"rest\" count=\"%zu\" size=\"%zu\"/>\n"
+ "<total type=\"fast\" count=\"%zu\" size=\"%zu\"/>\n"
+ "<total type=\"rest\" count=\"%zu\" size=\"%zu\"/>\n"
"<total type=\"mmap\" count=\"%zu\" size=\"%zu\"/>\n"
- "<system type=\"current\" size=\"%zu\"/>\n"
- "<system type=\"max\" size=\"%zu\"/>\n"
- "<aspace type=\"total\" size=\"%zu\"/>\n"
- "<aspace type=\"mprotect\" size=\"%zu\"/>\n"
- "</malloc>\n",
- total_nfastblocks, total_fastavail, total_nblocks, total_avail,
+ "<system type=\"current\" size=\"%zu\"/>\n"
+ "<system type=\"max\" size=\"%zu\"/>\n"
+ "<aspace type=\"total\" size=\"%zu\"/>\n"
+ "<aspace type=\"mprotect\" size=\"%zu\"/>\n"
+ "</malloc>\n",
+ total_nfastblocks, total_fastavail, total_nblocks, total_avail,
mp_.n_mmaps, mp_.mmapped_mem,
- total_system, total_max_system,
- total_aspace, total_aspace_mprotect);
+ total_system, total_max_system,
+ total_aspace, total_aspace_mprotect);
return 0;
}