Skip to contentSkip to conversation

proc/meminfo: fix spacing in SecPageTables

PATCH Applied Yosry Ahmed 3 participants 3 messages Nov 17, 2022 – Nov 18, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc/meminfo: fix spacing in SecPageTables

SecPageTables has a tab after it instead of a space, this can break fragile parsers that depend on spaces after the stat names.

Fixes ebc97a ("mm: add NR_SECONDARY_PAGETABLE to count secondary page table uses.")

---

The commit this fixes is in 6.1, so I hope this can also land in 6.1.

---
 fs/proc/meminfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/proc/meminfo.c +1 -1
index 5101131e6047..440960110a42 100644
@@ -115,7 +115,7 @@ static int meminfo_proc_show(struct seq_file *m, void *v)
 #endif
 	show_val_kb(m, "PageTables:     ",
 		    global_node_page_state(NR_PAGETABLE));
-	show_val_kb(m, "SecPageTables:	",
+	show_val_kb(m, "SecPageTables:  ",
 		    global_node_page_state(NR_SECONDARY_PAGETABLE));
 
 	show_val_kb(m, "NFS_Unstable:   ", 0);
Signature · 1 line
2.38.1.431.g37b22c650d-goog