wifi: brcmfmac: clarify unmodifiable headroom log message
PATCH v2 1/1 wifi: brcmfmac: clarify unmodifiable headroom log message
Replace misleading log "insufficient headroom (0)" with more clear "unmodifiable headroom".
Signed-off-by Alex Shumsky <[email protected]>
---
Changes in v2:
- don't remove log completely, but reword it
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c +2 -2
@@ -327,8 +327,8 @@ static netdev_tx_t brcmf_netdev_start_xmit(struct sk_buff *skb,if (skb_headroom (skb) < drvr->hdrlen ||skb_header_cloned (skb)) { head_delta =max_t (int, drvr->hdrlen -skb_headroom (skb),0 ); -brcmf_dbg (INFO ,"%s: insufficient headroom (%d)\n" , -brcmf_ifname (ifp), head_delta); +brcmf_dbg (INFO ,"%s: %s headroom\n" ,brcmf_ifname (ifp), + head_delta ?"insufficient" :"unmodifiable" );atomic_inc (&drvr->bus_if->stats.pktcowed); ret =pskb_expand_head (skb,ALIGN (head_delta,NET_SKB_PAD ),0 ,GFP_ATOMIC );
Signature · 1 line
2.34.1
Quoted 2 lines · Alex Shumsky
Replace misleading log "insufficient headroom (0)" with more clear "unmodifiable headroom".
Acked-by Arend van Spriel <[email protected]>
Quoted 8 lines
Signed-off-by Alex Shumsky <[email protected]>---
Changes in v2:
- don't remove log completely, but reword itdrivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 5 lines · Alex Shumsky
Replace misleading log "insufficient headroom (0)" with more clear "unmodifiable headroom".
Signed-off-by Alex Shumsky <[email protected]>Acked-by Arend van Spriel <[email protected]>
Patch applied to wireless-next.git, thanks.
aeda9245c7ce wifi: brcmfmac: clarify unmodifiable headroom log message
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches