Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1601835 > unrolled thread
| Started by | Joe Perches <joe@perches.com> |
|---|---|
| First post | 2017-03-16 02:50 +0100 |
| Last post | 2017-03-16 12:00 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 3/3] mm: page_alloc: Break up a long single-line printk Joe Perches <joe@perches.com> - 2017-03-16 02:50 +0100
Re: [PATCH 3/3] mm: page_alloc: Break up a long single-line printk Michal Hocko <mhocko@kernel.org> - 2017-03-16 12:00 +0100
| From | Joe Perches <joe@perches.com> |
|---|---|
| Date | 2017-03-16 02:50 +0100 |
| Subject | [PATCH 3/3] mm: page_alloc: Break up a long single-line printk |
| Message-ID | <tlsI9-7Ou-1@gated-at.bofh.it> |
Blocked multiple line output is easier to read than an
extremely long single line.
Miscellanea:
o Add "Node" prefix to each new line of the block
Signed-off-by: Joe Perches <joe@perches.com>
---
mm/page_alloc.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 6816bb167394..2d3c10734874 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -4540,20 +4540,23 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask)
" inactive_anon:%lukB"
" active_file:%lukB"
" inactive_file:%lukB"
- " unevictable:%lukB",
+ " unevictable:%lukB"
+ "\n",
pgdat->node_id,
K(node_page_state(pgdat, NR_ACTIVE_ANON)),
K(node_page_state(pgdat, NR_INACTIVE_ANON)),
K(node_page_state(pgdat, NR_ACTIVE_FILE)),
K(node_page_state(pgdat, NR_INACTIVE_FILE)),
K(node_page_state(pgdat, NR_UNEVICTABLE)));
- printk(KERN_CONT
+ printk("Node %d"
" isolated(anon):%lukB"
" isolated(file):%lukB"
" mapped:%lukB"
" dirty:%lukB"
" writeback:%lukB"
- " shmem:%lukB",
+ " shmem:%lukB"
+ "\n",
+ pgdat->node_id,
K(node_page_state(pgdat, NR_ISOLATED_ANON)),
K(node_page_state(pgdat, NR_ISOLATED_FILE)),
K(node_page_state(pgdat, NR_FILE_MAPPED)),
@@ -4561,20 +4564,23 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask)
K(node_page_state(pgdat, NR_WRITEBACK)),
K(node_page_state(pgdat, NR_SHMEM)));
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
- printk(KERN_CONT
+ printk("Node %d"
" shmem_thp: %lukB"
" shmem_pmdmapped: %lukB"
- " anon_thp: %lukB",
+ " anon_thp: %lukB"
+ "\n",
+ pgdat->node_id,
K(node_page_state(pgdat, NR_SHMEM_THPS) * HPAGE_PMD_NR),
K(node_page_state(pgdat, NR_SHMEM_PMDMAPPED)
* HPAGE_PMD_NR),
K(node_page_state(pgdat, NR_ANON_THPS) * HPAGE_PMD_NR));
#endif
- printk(KERN_CONT
+ printk("Node %d"
" writeback_tmp:%lukB"
" unstable:%lukB"
" all_unreclaimable? %s"
"\n",
+ pgdat->node_id,
K(node_page_state(pgdat, NR_WRITEBACK_TEMP)),
K(node_page_state(pgdat, NR_UNSTABLE_NFS)),
pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES ?
--
2.10.0.rc2.1.g053435c
[toc] | [next] | [standalone]
| From | Michal Hocko <mhocko@kernel.org> |
|---|---|
| Date | 2017-03-16 12:00 +0100 |
| Message-ID | <tlBiq-5vO-15@gated-at.bofh.it> |
| In reply to | #1601835 |
On Wed 15-03-17 18:43:15, Joe Perches wrote: > Blocked multiple line output is easier to read than an > extremely long single line. I am not really sure this is an improvemnt. If anything add an output before and after to the changelog. -- Michal Hocko SUSE Labs
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web