summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/show_mem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/show_mem.c b/lib/show_mem.c
index f58689f5a24..09225796991 100644
--- a/lib/show_mem.c
+++ b/lib/show_mem.c
@@ -43,4 +43,7 @@ void show_mem(unsigned int filter)
printk("%lu pages in pagetable cache\n",
quicklist_total_size());
#endif
+#ifdef CONFIG_MEMORY_FAILURE
+ printk("%lu pages hwpoisoned\n", atomic_long_read(&num_poisoned_pages));
+#endif
}