From: Vlastimil Babka <vbabka@suse.cz>
To: hui yang <yanghui.def@gmail.com>, akpm@linux-foundation.org
Cc: linux-mm@kvack.org
Subject: Re: [PATCH 20/20] mm: add "+" in show_free_areas()
Date: Thu, 12 Mar 2020 19:22:08 +0100 [thread overview]
Message-ID: <a730ff78-34ad-7dce-5481-22c914433e12@suse.cz> (raw)
In-Reply-To: <1583985752-42143-1-git-send-email-yanghui.def@gmail.com>
On 3/12/20 5:02 AM, hui yang wrote:
> From: YangHui <yanghui.def@gmail.com>
>
> if there has not "+" , it will show below:
> DMA: 305*4kB (UMCH).....5*2048kB (C) 13*4096kB (C) = 67196kB
> actually it's an addition expression
> so we should add "+"
>
> Signed-off-by: YangHui <yanghui.def@gmail.com>
Yeah but I think it's quite clear even without the '+' which would just make the
output longer harder to read, IMHO.
> ---
> mm/page_alloc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index 3c4eb75..d90b3d7 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -5399,7 +5399,7 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask)
> }
> spin_unlock_irqrestore(&zone->lock, flags);
> for (order = 0; order < MAX_ORDER; order++) {
> - printk(KERN_CONT "%lu*%lukB ",
> + printk(KERN_CONT "+%lu*%lukB ",
> nr[order], K(1UL) << order);
> if (nr[order])
> show_migration_types(types[order]);
>
prev parent reply other threads:[~2020-03-12 18:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-12 4:02 hui yang
2020-03-12 18:22 ` Vlastimil Babka [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a730ff78-34ad-7dce-5481-22c914433e12@suse.cz \
--to=vbabka@suse.cz \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=yanghui.def@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox