[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZemFM6jds/gN+gEG@gmail.com>
Date: Thu, 7 Mar 2024 01:13:23 -0800
From: Breno Leitao <leitao@...ian.org>
To: gaoxingwang <gaoxingwang1@...wei.com>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
liaichun@...wei.com, yanan@...wei.com
Subject: Re: [PATCH] net: fix print in skb_panic()
On Thu, Mar 07, 2024 at 02:11:43PM +0800, gaoxingwang wrote:
> skb->len and sz are printed as negative numbers during the panic:
> skbuff: skb_under_panic: text:ffffffff8e2d3eac len:-1961180312 put:-1961180408 head:ffff88800b6ac000 data:ffff887f804ffe78 tail:0x1e0 end:0xec0 dev:team0
>
> Use %u to print skb->len and sz,because they are defined as unsigned int.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Signed-off-by: gaoxingwang <gaoxingwang1@...wei.com>
Reviwed-by: Breno Leitao <leitao@...ian.org>
Powered by blists - more mailing lists