Andrew Morton
7a82ca0d64
mm/debug.c: use pr_emerg()
...
- s/KERN_ALERT/pr_emerg/: we're going BUG so let's maximize the changes
of getting the message out.
- convert debug.c to pr_foo()
Cc: Sasha Levin <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2014-10-09 22:25:59 -04:00
Sasha Levin
31c9afa6db
mm: introduce VM_BUG_ON_MM
...
Very similar to VM_BUG_ON_PAGE and VM_BUG_ON_VMA, dump struct_mm when the
bug is hit.
[[email protected] : coding-style fixes]
[[email protected] : fix build]
[[email protected] : fix build some more]
[[email protected] : do strange things to avoid doing strange things for the comma separators]
Signed-off-by: Sasha Levin <[email protected] >
Cc: Dave Jones <[email protected] >
Signed-off-by: Michal Hocko <[email protected] >
Cc: Valdis Kletnieks <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2014-10-09 22:25:58 -04:00
Sasha Levin
82742a3a51
mm: move debug code out of page_alloc.c
...
dump_page() and dump_vma() are not specific to page_alloc.c, move them out
so page_alloc.c won't turn into the unofficial debug repository.
Signed-off-by: Sasha Levin <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2014-10-09 22:25:58 -04:00