From nobody Sun Feb 8 21:12:33 2026 Received: from cmccmta3.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD5F6E541 for ; Tue, 20 Aug 2024 06:04:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.22.67.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724133877; cv=none; b=oGXtItgaf/4d38w850Cv/5Vz2ZraHGc9cRPNWBnfXkaff0FxcjQz3pGSk+hpPChHxd5k2Wb9SN0w/qJF2t8HaOlMBQpxMR3fUBD6KFiwG2H8RiBWMfSN0gnVDR4m2Uk2M9//BPNpyWBOmHfXF94yFF/G16HfKX9SgVl5MMn1/pg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724133877; c=relaxed/simple; bh=b/MA4p+iUTtp3ZEvWchj3LfNtk31cfzKJ036xIznHNU=; h=From:To:Cc:Subject:Date:Message-Id; b=oL/6p0Q+ewxvCGhl+A2e5Qd5/giLZWh/YG5wOBPxn5DP/pu+od5FnNP81MpkFiNy0F4wyctmLlL+m8BUec9/AqzrbnZoypURvADK/gKVBG5U/Gek7u998bnEeZCebRzrmRIqWujtVfLgvH+FUPY4NkQFAwfWur38qgZtr1ALfo4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=none smtp.client-ip=111.22.67.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com 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-app09-12009 (RichMail) with SMTP id 2ee966c431f022b-6f22c; Tue, 20 Aug 2024 14:04:32 +0800 (CST) X-RM-TRANSID: 2ee966c431f022b-6f22c X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from ubuntu.localdomain (unknown[223.108.79.99]) by rmsmtp-syy-appsvr07-12007 (RichMail) with SMTP id 2ee766c431eed2a-f7ec2; Tue, 20 Aug 2024 14:04:32 +0800 (CST) X-RM-TRANSID: 2ee766c431eed2a-f7ec2 From: Zhu Jun To: davem@davemloft.net Cc: edumazet@google.com, pabeni@redhat.com, hawk@kernel.org, zhujun2@cmss.chinamobile.com, linux-kernel@vger.kernel.org Subject: [PATCH v1] tools/net: Fix the wrong format specifier Date: Mon, 19 Aug 2024 23:04:30 -0700 Message-Id: <20240820060430.4076-1-zhujun2@cmss.chinamobile.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The format specifier of "unsigned int" in printf() should be "%u", not "%d". Signed-off-by: Zhu Jun --- Changes in v1: - modify Subject tools/net/ynl/samples/page-pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/net/ynl/samples/page-pool.c b/tools/net/ynl/samples/page= -pool.c index 332f281ee5cb..e5d521320fbf 100644 --- a/tools/net/ynl/samples/page-pool.c +++ b/tools/net/ynl/samples/page-pool.c @@ -118,7 +118,7 @@ int main(int argc, char **argv) name =3D if_indextoname(s->ifc, ifname); if (name) printf("%8s", name); - printf("[%d]\t", s->ifc); + printf("[%u]\t", s->ifc); } =20 printf("page pools: %u (zombies: %u)\n", --=20 2.17.1