aboutsummaryrefslogtreecommitdiffstats
path: root/mm/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/debug.c')
-rw-r--r--mm/debug.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/mm/debug.c b/mm/debug.c
index 6d9aa5359109..72daa4b087ba 100644
--- a/mm/debug.c
+++ b/mm/debug.c
@@ -54,7 +54,7 @@ void __dump_page(struct page *page, const char *reason)
54 * dump_page() when detected. 54 * dump_page() when detected.
55 */ 55 */
56 if (page_poisoned) { 56 if (page_poisoned) {
57 pr_emerg("page:%px is uninitialized and poisoned", page); 57 pr_warn("page:%px is uninitialized and poisoned", page);
58 goto hex_only; 58 goto hex_only;
59 } 59 }
60 60
@@ -65,39 +65,39 @@ void __dump_page(struct page *page, const char *reason)
65 */ 65 */
66 mapcount = PageSlab(page) ? 0 : page_mapcount(page); 66 mapcount = PageSlab(page) ? 0 : page_mapcount(page);
67 67
68 pr_emerg("page:%px count:%d mapcount:%d mapping:%px index:%#lx", 68 pr_warn("page:%px count:%d mapcount:%d mapping:%px index:%#lx",
69 page, page_ref_count(page), mapcount, 69 page, page_ref_count(page), mapcount,
70 page->mapping, page_to_pgoff(page)); 70 page->mapping, page_to_pgoff(page));
71 if (PageCompound(page)) 71 if (PageCompound(page))
72 pr_cont(" compound_mapcount: %d", compound_mapcount(page)); 72 pr_cont(" compound_mapcount: %d", compound_mapcount(page));
73 pr_cont("\n"); 73 pr_cont("\n");
74 if (PageAnon(page)) 74 if (PageAnon(page))
75 pr_emerg("anon "); 75 pr_warn("anon ");
76 else if (PageKsm(page)) 76 else if (PageKsm(page))
77 pr_emerg("ksm "); 77 pr_warn("ksm ");
78 else if (mapping) { 78 else if (mapping) {
79 pr_emerg("%ps ", mapping->a_ops); 79 pr_warn("%ps ", mapping->a_ops);
80 if (mapping->host->i_dentry.first) { 80 if (mapping->host->i_dentry.first) {
81 struct dentry *dentry; 81 struct dentry *dentry;
82 dentry = container_of(mapping->host->i_dentry.first, struct dentry, d_u.d_alias); 82 dentry = container_of(mapping->host->i_dentry.first, struct dentry, d_u.d_alias);
83 pr_emerg("name:\"%pd\" ", dentry); 83 pr_warn("name:\"%pd\" ", dentry);
84 } 84 }
85 } 85 }
86 BUILD_BUG_ON(ARRAY_SIZE(pageflag_names) != __NR_PAGEFLAGS + 1); 86 BUILD_BUG_ON(ARRAY_SIZE(pageflag_names) != __NR_PAGEFLAGS + 1);
87 87
88 pr_emerg("flags: %#lx(%pGp)\n", page->flags, &page->flags); 88 pr_warn("flags: %#lx(%pGp)\n", page->flags, &page->flags);
89 89
90hex_only: 90hex_only:
91 print_hex_dump(KERN_ALERT, "raw: ", DUMP_PREFIX_NONE, 32, 91 print_hex_dump(KERN_WARNING, "raw: ", DUMP_PREFIX_NONE, 32,
92 sizeof(unsigned long), page, 92 sizeof(unsigned long), page,
93 sizeof(struct page), false); 93 sizeof(struct page), false);
94 94
95 if (reason) 95 if (reason)
96 pr_alert("page dumped because: %s\n", reason); 96 pr_warn("page dumped because: %s\n", reason);
97 97
98#ifdef CONFIG_MEMCG 98#ifdef CONFIG_MEMCG
99 if (!page_poisoned && page->mem_cgroup) 99 if (!page_poisoned && page->mem_cgroup)
100 pr_alert("page->mem_cgroup:%px\n", page->mem_cgroup); 100 pr_warn("page->mem_cgroup:%px\n", page->mem_cgroup);
101#endif 101#endif
102} 102}
103 103