Netdev List
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: netdev <netdev@vger.kernel.org>
Subject: [PATCH] [NET] print skb pointer in truesize bug
Date: Thu, 01 May 2008 13:00:56 +0200	[thread overview]
Message-ID: <1209639656.7067.2.camel@johannes.berg> (raw)

While debugging the mac80211 truesize problem I always wished
that I knew exactly which skb showed the problem, this makes
skb_truesize_bug() print out the pointer.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
 net/core/skbuff.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- everything.orig/net/core/skbuff.c	2008-05-01 12:53:09.000000000 +0200
+++ everything/net/core/skbuff.c	2008-05-01 12:53:31.000000000 +0200
@@ -152,8 +152,8 @@ void skb_under_panic(struct sk_buff *skb
 void skb_truesize_bug(struct sk_buff *skb)
 {
 	printk(KERN_ERR "SKB BUG: Invalid truesize (%u) "
-	       "len=%u, sizeof(sk_buff)=%Zd\n",
-	       skb->truesize, skb->len, sizeof(struct sk_buff));
+	       "len=%u, sizeof(sk_buff)=%Zd, skb=0x%p\n",
+	       skb->truesize, skb->len, sizeof(struct sk_buff), skb);
 }
 EXPORT_SYMBOL(skb_truesize_bug);
 



             reply	other threads:[~2008-05-01 11:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-01 11:00 Johannes Berg [this message]
2008-05-02 23:42 ` [PATCH] [NET] print skb pointer in truesize bug David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1209639656.7067.2.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox