Message ID | be861b50-a790-e041-bcb0-2a987dcfd1a@google.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | mm,thp: fix sloppy text output | expand |
On 14.08.23 22:01, Hugh Dickins wrote: > Add one more space to FileHugePages and FilePmdMapped, so the output > is aligned with other rows in /sys/devices/system/node/nodeN/meminfo. > > Signed-off-by: Hugh Dickins <hughd@google.com> > --- > drivers/base/node.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/base/node.c b/drivers/base/node.c > index 9de524e56307..8e871ba9162f 100644 > --- a/drivers/base/node.c > +++ b/drivers/base/node.c > @@ -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" Reviewed-by: David Hildenbrand <david@redhat.com>
diff --git a/drivers/base/node.c b/drivers/base/node.c index 9de524e56307..8e871ba9162f 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c @@ -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"
Add one more space to FileHugePages and FilePmdMapped, so the output is aligned with other rows in /sys/devices/system/node/nodeN/meminfo. Signed-off-by: Hugh Dickins <hughd@google.com> --- drivers/base/node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)