From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 931272DA76A for ; Fri, 27 Mar 2026 11:45:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.77.101.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774611913; cv=none; b=HOAtF8bMon+2fwqyhXcYMwbPKkPhV/4goHiKT8fq1JYpCwLRVTxXBeQSbQQTieSh67gx8mc8JnHoUMmJJcolWnFZA10h/Xe/HSy7uw9BdicMoUBsxjjyzdY0lGA42OwByV3Amn8T8dsQDgEXBfCeW2AcQGT6AUt4iskmHYpU0S4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774611913; c=relaxed/simple; bh=S4w9Zb/UHoXsyxuEK/vrnzwO9gR74SVBfRFOdTg8F5I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MbYpkIuEeFDV9iuhxOCmK81AU/yZxam41n4iSYhke3cIjLeJOi/DT5+CFsdDCeQaxJj7dMc2n63GBw6cI3w6b+3qQHZQ70NykfV6az6YVKXHq5kpYBIyBuM2OQCow+ArF3F7u0bnnu/Yzs4fCaciqWBpvj4L2uYEWFXl1DQJqj8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl; spf=pass smtp.mailfrom=wp.pl; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b=Fut8Pt2f; arc=none smtp.client-ip=212.77.101.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wp.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b="Fut8Pt2f" Received: (wp-smtpd smtp.wp.pl 26322 invoked from network); 27 Mar 2026 12:45:02 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=20241105; t=1774611903; bh=ClyMAST5Ou9swdngfYyP3nxlyzXf+yDAbxpymoT0Rjk=; h=From:To:Cc:Subject; b=Fut8Pt2f2FcKLZeKZU6PsuAH1IcmaM6XxqTkZQ8XewDKGzJKsPg+X/Axp2vAWRCc3 3qnAY22THiRL5JSsDnOi6LQ5NhDheTCBhr6BOTjaYeOZ6LBEdep/O+evxzNJJbYD04 K6A0diSmzXF22FjSBUU+0UZq99GX+WHfShkvuWqv8mc7O75d/HgkPLFkPzouFhag4n 1YaqJDXLW+SaLHU1+xH4m1VlwmeT/qC1MOuFnaj01GZlMeDtJD8dOe/Dc4s25FKJFi OYova3fSHcfORauEu1dzJScFTX/KaH+Jbztse2qvin+3/6KGVc+cqlQ0xYFlhoy3qE i1MDyFUefqg3w== Received: from 77-236-5-223.static.play.pl (HELO localhost) (stf_xl@wp.pl@[77.236.5.223]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with TLS_AES_256_GCM_SHA384 encrypted SMTP for ; 27 Mar 2026 12:45:02 +0100 Date: Fri, 27 Mar 2026 12:45:02 +0100 From: Stanislaw Gruszka To: Brendan Jackman Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Alexander Potapenko , Marco Elver , Dmitry Vyukov , Andrew Morton , Allison Henderson , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com Subject: Re: [PATCH v2 2/4] iwlegacy: 3945-mac: Fixup allocation failure log Message-ID: <20260327114502.GA16800@wp.pl> References: <20260326-gfp64-v2-0-d916021cecdf@google.com> <20260326-gfp64-v2-2-d916021cecdf@google.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260326-gfp64-v2-2-d916021cecdf@google.com> X-WP-MailID: a5b414377b8f46f1eed9309472d3c6e9 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [YTOh] Hi, On Thu, Mar 26, 2026 at 12:31:58PM +0000, Brendan Jackman wrote: > Fix 2 issues spotted by AI[0]: > > 1. Missing space after the full stop. > > 2. Wrong GFP flags are printed. We should also initialize gfp_mask = priority inside the loop. But this can be done as separate patch. > And also switch to %pGg for the GFP flags. This produces nice readable > output and decouples the format string from the size of gfp_t. > > [0] https://sashiko.dev/#/patchset/20260319-gfp64-v1-0-2c73b8d42b7f%40google.com > > Signed-off-by: Brendan Jackman Acked-by: Stanislaw Gruszka > --- > drivers/net/wireless/intel/iwlegacy/3945-mac.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/wireless/intel/iwlegacy/3945-mac.c b/drivers/net/wireless/intel/iwlegacy/3945-mac.c > index c148654aa9533..88b31e0b9568c 100644 > --- a/drivers/net/wireless/intel/iwlegacy/3945-mac.c > +++ b/drivers/net/wireless/intel/iwlegacy/3945-mac.c > @@ -1002,9 +1002,9 @@ il3945_rx_allocate(struct il_priv *il, gfp_t priority) > D_INFO("Failed to allocate SKB buffer.\n"); > if (rxq->free_count <= RX_LOW_WATERMARK && > net_ratelimit()) > - IL_ERR("Failed to allocate SKB buffer with %0x." > + IL_ERR("Failed to allocate SKB buffer with %pGg. " > "Only %u free buffers remaining.\n", > - priority, rxq->free_count); > + &gfp_mask, rxq->free_count); > /* We don't reschedule replenish work here -- we will > * call the restock method and if it still needs > * more buffers it will schedule replenish */ > > -- > 2.51.2 >