patch-2.1.24 linux/net/ax25/ax25_timer.c

Next file: linux/net/ipv4/tcp.c
Previous file: linux/net/ax25/ax25_subr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.23/linux/net/ax25/ax25_timer.c linux/net/ax25/ax25_timer.c
@@ -149,8 +149,7 @@
 
 			ax25->state = AX25_STATE_0;
 			if (ax25->sk != NULL) {
-				if (ax25->sk->debug)
-					printk(KERN_DEBUG "AX.25 T3 Timeout\n");
+				SOCK_DEBUG(ax25->sk, "AX.25 T3 Timeout\n");
 				ax25->sk->state     = TCP_CLOSE;
 				ax25->sk->err       = ETIMEDOUT;
 				ax25->sk->shutdown |= SEND_SHUTDOWN;
@@ -298,8 +297,7 @@
 				ax25_send_control(ax25, AX25_DM, AX25_POLLON, AX25_RESPONSE);
 				ax25->state = AX25_STATE_0;
 				if (ax25->sk != NULL) {
-					if (ax25->sk->debug)
-						printk(KERN_DEBUG "AX.25 link Failure\n");
+					SOCK_DEBUG(ax25->sk, "AX.25 link Failure\n");
 					ax25->sk->state     = TCP_CLOSE;
 					ax25->sk->err       = ETIMEDOUT;
 					ax25->sk->shutdown |= SEND_SHUTDOWN;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov