patch-pre2.0.3 linux/net/core/skbuff.c

Next file: linux/net/ethernet/eth.c
Previous file: linux/net/core/net_alias.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.2/linux/net/core/skbuff.c linux/net/core/skbuff.c
@@ -69,13 +69,13 @@
 
 void show_net_buffers(void)
 {
-	printk("Networking buffers in use          : %u\n",net_skbcount);
-	printk("Network buffers locked by drivers  : %u\n",net_locked);
-	printk("Total network buffer allocations   : %u\n",net_allocs);
-	printk("Total failed network buffer allocs : %u\n",net_fails);
-	printk("Total free while locked events     : %u\n",net_free_locked);
+	printk(KERN_INFO "Networking buffers in use          : %u\n",net_skbcount);
+	printk(KERN_INFO "Network buffers locked by drivers  : %u\n",net_locked);
+	printk(KERN_INFO "Total network buffer allocations   : %u\n",net_allocs);
+	printk(KERN_INFO "Total failed network buffer allocs : %u\n",net_fails);
+	printk(KERN_INFO "Total free while locked events     : %u\n",net_free_locked);
 #ifdef CONFIG_INET
-	printk("IP fragment buffer size            : %u\n",ip_frag_mem);
+	printk(KERN_INFO "IP fragment buffer size            : %u\n",ip_frag_mem);
 #endif	
 }
 
@@ -578,7 +578,7 @@
 {
 	if (skb == NULL)
 	{
-		printk("kfree_skb: skb = NULL (from %p)\n",
+		printk(KERN_CRIT "kfree_skb: skb = NULL (from %p)\n",
 			__builtin_return_address(0));
 		return;
   	}
@@ -592,10 +592,10 @@
 		return;
   	}
   	if (skb->free == 2)
-		printk("Warning: kfree_skb passed an skb that nobody set the free flag on! (from %p)\n",
+		printk(KERN_WARNING "Warning: kfree_skb passed an skb that nobody set the free flag on! (from %p)\n",
 			__builtin_return_address(0));
 	if (skb->list)
-	 	printk("Warning: kfree_skb passed an skb still on a list (from %p).\n",
+	 	printk(KERN_WARNING "Warning: kfree_skb passed an skb still on a list (from %p).\n",
 			__builtin_return_address(0));
 
 	if(skb->destructor)
@@ -641,7 +641,7 @@
 	{
 		static int count = 0;
 		if (++count < 5) {
-			printk("alloc_skb called nonatomically from interrupt %p\n",
+			printk(KERN_ERR "alloc_skb called nonatomically from interrupt %p\n",
 				__builtin_return_address(0));
 			priority = GFP_ATOMIC;
 		}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this