linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: zhaimingbing <zhaimingbing@cmss.chinamobile.com>,
	James.Bottomley@hansenpartnership.com
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm:hugetlb_cgroup: Fix the wrong format specifier
Date: Mon, 6 Nov 2023 12:40:36 -0800	[thread overview]
Message-ID: <785e7f99-ccb9-4640-b554-825061f73ee1@infradead.org> (raw)
In-Reply-To: <20231106082723.8728-1-zhaimingbing@cmss.chinamobile.com>



On 11/6/23 00:27, zhaimingbing wrote:
> The long type should use "%ld" instead of "%lu".
> 
> Signed-off-by: zhaimingbing <zhaimingbing@cmss.chinamobile.com>

Acked-by: Randy Dunlap <rdunlap@infradead.org>

Thanks.

> ---
>  mm/hugetlb_cgroup.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mm/hugetlb_cgroup.c b/mm/hugetlb_cgroup.c
> index dedd2edb0..3c132795c 100644
> --- a/mm/hugetlb_cgroup.c
> +++ b/mm/hugetlb_cgroup.c
> @@ -696,7 +696,7 @@ static int __hugetlb_events_show(struct seq_file *seq, bool local)
>  	else
>  		max = atomic_long_read(&h_cg->events[idx][HUGETLB_MAX]);
>  
> -	seq_printf(seq, "max %lu\n", max);
> +	seq_printf(seq, "max %ld\n", max);
>  
>  	return 0;
>  }

-- 
~Randy


  reply	other threads:[~2023-11-06 20:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-06  8:27 zhaimingbing
2023-11-06 20:40 ` Randy Dunlap [this message]
2023-11-07 21:13   ` [PATCH V2] mm:hugetlb_cgroup: Optimize variable initialization zhaimingbing
2023-11-10 21:02     ` Randy Dunlap
2023-11-07 16:32 ` [PATCH] mm:hugetlb_cgroup: Fix the wrong format specifier Andrew Morton

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=785e7f99-ccb9-4640-b554-825061f73ee1@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=zhaimingbing@cmss.chinamobile.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