diff options
author | Ralph Campbell <rcampbell@nvidia.com> | 2019-11-16 04:35:04 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-11-16 05:34:00 +0300 |
commit | 76a1850e45724e8aca44fc0a245de6782ce42e65 (patch) | |
tree | 5584550e37a0eb2e30ebd061cc2bbb936bf17954 /samples/kobject/kset-example.c | |
parent | 5df373e95689b9519b8557da7c5bd0db0856d776 (diff) | |
download | linux-76a1850e45724e8aca44fc0a245de6782ce42e65.tar.xz |
mm/debug.c: __dump_page() prints an extra line
When dumping struct page information, __dump_page() prints the page type
with a trailing blank followed by the page flags on a separate line:
anon
flags: 0x100000000090034(uptodate|lru|active|head|swapbacked)
It looks like the intent was to use pr_cont() for printing "flags:" but
pr_cont() usage is discouraged so fix this by extending the format to
include the flags into a single line:
anon flags: 0x100000000090034(uptodate|lru|active|head|swapbacked)
If the page is file backed, the name might be long so use two lines:
shmem_aops name:"dev/zero"
flags: 0x10000000008000c(uptodate|dirty|swapbacked)
Eliminate pr_conf() usage as well for appending compound_mapcount.
Link: http://lkml.kernel.org/r/20191112012608.16926-1-rcampbell@nvidia.com
Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'samples/kobject/kset-example.c')
0 files changed, 0 insertions, 0 deletions