From nobody Wed Dec 31 09:05:14 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43CEDC4332F for ; Mon, 6 Nov 2023 08:27:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231235AbjKFI15 (ORCPT ); Mon, 6 Nov 2023 03:27:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbjKFI1z (ORCPT ); Mon, 6 Nov 2023 03:27:55 -0500 Received: from cmccmta2.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6D84A136 for ; Mon, 6 Nov 2023 00:27:33 -0800 (PST) X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app05-12005 (RichMail) with SMTP id 2ee56548a373cd0-97572; Mon, 06 Nov 2023 16:27:31 +0800 (CST) X-RM-TRANSID: 2ee56548a373cd0-97572 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain.localdomain (unknown[10.54.5.252]) by rmsmtp-syy-appsvr04-12004 (RichMail) with SMTP id 2ee46548a372109-4865e; Mon, 06 Nov 2023 16:27:31 +0800 (CST) X-RM-TRANSID: 2ee46548a372109-4865e From: zhaimingbing To: rdunlap@infradead.org, James.Bottomley@hansenpartnership.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, zhaimingbing Subject: [PATCH] mm:hugetlb_cgroup: Fix the wrong format specifier Date: Mon, 6 Nov 2023 16:27:23 +0800 Message-Id: <20231106082723.8728-1-zhaimingbing@cmss.chinamobile.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The long type should use "%ld" instead of "%lu". Signed-off-by: zhaimingbing Acked-by: Randy Dunlap --- 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 =3D atomic_long_read(&h_cg->events[idx][HUGETLB_MAX]); =20 - seq_printf(seq, "max %lu\n", max); + seq_printf(seq, "max %ld\n", max); =20 return 0; } --=20 2.33.0