Skip to content

Commit f5ef68d

Browse files
Andrew MortonLinus Torvalds
authored andcommitted
[PATCH] /proc/meminfo: don't put spaces in names
None of the other /proc/meminfo lines have a space in the identifier. This post-2.6.17 addition has the potential to break existing parsers, so use an underscore instead (like Committed_AS). Cc: Christoph Lameter <clameter@engr.sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 513627d commit f5ef68d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/base/node.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static ssize_t node_read_meminfo(struct sys_device * dev, char * buf)
6464
"Node %d Mapped: %8lu kB\n"
6565
"Node %d AnonPages: %8lu kB\n"
6666
"Node %d PageTables: %8lu kB\n"
67-
"Node %d NFS Unstable: %8lu kB\n"
67+
"Node %d NFS_Unstable: %8lu kB\n"
6868
"Node %d Bounce: %8lu kB\n"
6969
"Node %d Slab: %8lu kB\n",
7070
nid, K(i.totalram),

fs/proc/proc_misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ static int meminfo_read_proc(char *page, char **start, off_t off,
169169
"Mapped: %8lu kB\n"
170170
"Slab: %8lu kB\n"
171171
"PageTables: %8lu kB\n"
172-
"NFS Unstable: %8lu kB\n"
172+
"NFS_Unstable: %8lu kB\n"
173173
"Bounce: %8lu kB\n"
174174
"CommitLimit: %8lu kB\n"
175175
"Committed_AS: %8lu kB\n"

0 commit comments

Comments
 (0)