mm,thp: fix nodeN/meminfo output alignment
authorHugh Dickins <hughd@google.com>
Mon, 14 Aug 2023 20:01:12 +0000 (13:01 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:38:01 +0000 (13:38 -0700)
Add one more space to FileHugePages and FilePmdMapped, so the output is
aligned with other rows in /sys/devices/system/node/nodeN/meminfo.

Link: https://lkml.kernel.org/r/be861b50-a790-e041-bcb0-2a987dcfd1a@google.com
Signed-off-by: Hugh Dickins <hughd@google.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/base/node.c

index 9de524e..8e871ba 100644 (file)
@@ -446,8 +446,8 @@ static ssize_t node_read_meminfo(struct device *dev,
                             "Node %d AnonHugePages:  %8lu kB\n"
                             "Node %d ShmemHugePages: %8lu kB\n"
                             "Node %d ShmemPmdMapped: %8lu kB\n"
-                            "Node %d FileHugePages: %8lu kB\n"
-                            "Node %d FilePmdMapped: %8lu kB\n"
+                            "Node %d FileHugePages:  %8lu kB\n"
+                            "Node %d FilePmdMapped:  %8lu kB\n"
 #endif
 #ifdef CONFIG_UNACCEPTED_MEMORY
                             "Node %d Unaccepted:     %8lu kB\n"