patch-pre2.0.3 linux/net/ax25/af_ax25.c

Next file: linux/net/ax25/ax25_out.c
Previous file: linux/net/appletalk/ddp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.2/linux/net/ax25/af_ax25.c linux/net/ax25/af_ax25.c
@@ -636,8 +636,10 @@
 	  	case AX25_PACLEN:
 	  		if (ax25_ctl.arg < 16 || ax25_ctl.arg > 65535) 
 	  			return -EINVAL;
+#if 0
 	  		if (ax25_ctl.arg > 256) /* we probably want this */
-	  			printk("ax25_ctl_ioctl: Warning --- huge paclen %d\n", (int)ax25_ctl.arg);
+	  			printk(KERN_WARNING "ax25_ctl_ioctl: Warning --- huge paclen %d\n", (int)ax25_ctl.arg);
+#endif	  			
 	  		ax25->paclen = ax25_ctl.arg;
 	  		break;
 
@@ -2413,7 +2415,7 @@
 		ax25_cs_get_info
 	});
 
-	printk("G4KLX/GW4PTS AX.25 for Linux. Version 0.32 BETA for Linux NET3.034 (Linux 1.3.77)\n");
+	printk(KERN_INFO "G4KLX/GW4PTS AX.25 for Linux. Version 0.32 BETA for Linux NET3.035 (Linux 2.0)\n");
 
 #ifdef CONFIG_BPQETHER
 	proc_net_register(&(struct proc_dir_entry) {
@@ -2423,7 +2425,7 @@
 		ax25_bpq_get_info
 	});
 
-	printk("G8BPQ Encapsulation of AX.25 frames enabled\n");
+	printk(KERN_INFO "G8BPQ Encapsulation of AX.25 frames enabled\n");
 #endif
 }
 
@@ -2451,7 +2453,7 @@
 		int size;
 
 		if(skb_headroom(skb) < AX25_BPQ_HEADER_LEN) {
-			printk("ax25_queue_xmit: not enough space to add BPQ Ether header\n");
+			printk(KERN_CRIT "ax25_queue_xmit: not enough space to add BPQ Ether header\n");
 			dev_kfree_skb(skb, FREE_WRITE);
 			return;
 		}
@@ -2522,7 +2524,7 @@
   			*buff++ = AX25_P_ARP;
   			break;
   		default:
-  			printk("wrong protocol type 0x%x2.2\n", type);
+  			printk(KERN_ERR "wrong protocol type 0x%x2.2\n", type);
   			*buff++ = 0;
   			break;
  	}

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