summaryrefslogtreecommitdiff
path: root/libdde_linux26/lib/src/net
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2010-05-04 15:56:46 +0200
committerZheng Da <zhengda1936@gmail.com>2010-05-04 15:56:46 +0200
commit045fb6a578e0e4d97f0e581bbf514654686a86c1 (patch)
tree399ce48eee3b26437b0452842e8f67588e476360 /libdde_linux26/lib/src/net
parentb45568005e6b67d35caa0f03f7d54180b82a7a6f (diff)
Add printing.
Diffstat (limited to 'libdde_linux26/lib/src/net')
-rw-r--r--libdde_linux26/lib/src/net/core/skbuff.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libdde_linux26/lib/src/net/core/skbuff.c b/libdde_linux26/lib/src/net/core/skbuff.c
index 2f65e534..40d64a88 100644
--- a/libdde_linux26/lib/src/net/core/skbuff.c
+++ b/libdde_linux26/lib/src/net/core/skbuff.c
@@ -180,14 +180,19 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
/* Get the HEAD */
skb = kmem_cache_alloc_node(cache, gfp_mask & ~__GFP_DMA, node);
- if (!skb)
+ if (!skb) {
+ printk("kmem_cache_alloc_node fails\n");
goto out;
+ }
size = SKB_DATA_ALIGN(size);
data = kmalloc_node_track_caller(size + sizeof(struct skb_shared_info),
gfp_mask, node);
- if (!data)
+ if (!data) {
+ printk("kmalloc_node_track_caller %d fails\n",
+ size + sizeof(struct skb_shared_info));
goto nodata;
+ }
/*
* Only clear those fields we need to clear, not those that we will