Commit b200a2aa authored by Alexander Viro's avatar Alexander Viro Committed by Stephen Hemminger

[wan lapb] Printks switched from %p lapb->token to %p lapb->dev.

parent a01d4ab4
...@@ -280,7 +280,7 @@ int lapb_connect_request(struct net_device *dev) ...@@ -280,7 +280,7 @@ int lapb_connect_request(struct net_device *dev)
lapb_establish_data_link(lapb); lapb_establish_data_link(lapb);
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S0 -> S1\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S0 -> S1\n", lapb->dev);
#endif #endif
lapb->state = LAPB_STATE_1; lapb->state = LAPB_STATE_1;
...@@ -306,10 +306,10 @@ int lapb_disconnect_request(struct net_device *dev) ...@@ -306,10 +306,10 @@ int lapb_disconnect_request(struct net_device *dev)
case LAPB_STATE_1: case LAPB_STATE_1:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S1 TX DISC(1)\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S1 TX DISC(1)\n", lapb->dev);
#endif #endif
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S1 -> S0\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S1 -> S0\n", lapb->dev);
#endif #endif
lapb_send_control(lapb, LAPB_DISC, LAPB_POLLON, LAPB_COMMAND); lapb_send_control(lapb, LAPB_DISC, LAPB_POLLON, LAPB_COMMAND);
lapb->state = LAPB_STATE_0; lapb->state = LAPB_STATE_0;
...@@ -330,10 +330,10 @@ int lapb_disconnect_request(struct net_device *dev) ...@@ -330,10 +330,10 @@ int lapb_disconnect_request(struct net_device *dev)
lapb->state = LAPB_STATE_2; lapb->state = LAPB_STATE_2;
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 DISC(1)\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S3 DISC(1)\n", lapb->dev);
#endif #endif
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S3 -> S2\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S3 -> S2\n", lapb->dev);
#endif #endif
rc = LAPB_OK; rc = LAPB_OK;
......
...@@ -47,23 +47,23 @@ static void lapb_state0_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -47,23 +47,23 @@ static void lapb_state0_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_SABM: case LAPB_SABM:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S0 RX SABM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S0 RX SABM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (lapb->mode & LAPB_EXTENDED) { if (lapb->mode & LAPB_EXTENDED) {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S0 TX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S0 TX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_DM, frame->pf, lapb_send_control(lapb, LAPB_DM, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
} else { } else {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S0 TX UA(%d)\n", printk(KERN_DEBUG "lapb: (%p) S0 TX UA(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S0 -> S3\n", printk(KERN_DEBUG "lapb: (%p) S0 -> S3\n",
lapb->token); lapb->dev);
#endif #endif
lapb_send_control(lapb, LAPB_UA, frame->pf, lapb_send_control(lapb, LAPB_UA, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -82,16 +82,16 @@ static void lapb_state0_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -82,16 +82,16 @@ static void lapb_state0_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_SABME: case LAPB_SABME:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S0 RX SABME(%d)\n", printk(KERN_DEBUG "lapb: (%p) S0 RX SABME(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (lapb->mode & LAPB_EXTENDED) { if (lapb->mode & LAPB_EXTENDED) {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S0 TX UA(%d)\n", printk(KERN_DEBUG "lapb: (%p) S0 TX UA(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S0 -> S3\n", printk(KERN_DEBUG "lapb: (%p) S0 -> S3\n",
lapb->token); lapb->dev);
#endif #endif
lapb_send_control(lapb, LAPB_UA, frame->pf, lapb_send_control(lapb, LAPB_UA, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -107,7 +107,7 @@ static void lapb_state0_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -107,7 +107,7 @@ static void lapb_state0_machine(struct lapb_cb *lapb, struct sk_buff *skb,
} else { } else {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S0 TX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S0 TX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_DM, frame->pf, lapb_send_control(lapb, LAPB_DM, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -117,9 +117,9 @@ static void lapb_state0_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -117,9 +117,9 @@ static void lapb_state0_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_DISC: case LAPB_DISC:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S0 RX DISC(%d)\n", printk(KERN_DEBUG "lapb: (%p) S0 RX DISC(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
printk(KERN_DEBUG "lapb: (%p) S0 TX UA(%d)\n", printk(KERN_DEBUG "lapb: (%p) S0 TX UA(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_UA, frame->pf, lapb_send_control(lapb, LAPB_UA, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -143,19 +143,19 @@ static void lapb_state1_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -143,19 +143,19 @@ static void lapb_state1_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_SABM: case LAPB_SABM:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S1 RX SABM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S1 RX SABM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (lapb->mode & LAPB_EXTENDED) { if (lapb->mode & LAPB_EXTENDED) {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S1 TX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S1 TX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_DM, frame->pf, lapb_send_control(lapb, LAPB_DM, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
} else { } else {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S1 TX UA(%d)\n", printk(KERN_DEBUG "lapb: (%p) S1 TX UA(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_UA, frame->pf, lapb_send_control(lapb, LAPB_UA, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -165,19 +165,19 @@ static void lapb_state1_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -165,19 +165,19 @@ static void lapb_state1_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_SABME: case LAPB_SABME:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S1 RX SABME(%d)\n", printk(KERN_DEBUG "lapb: (%p) S1 RX SABME(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (lapb->mode & LAPB_EXTENDED) { if (lapb->mode & LAPB_EXTENDED) {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S1 TX UA(%d)\n", printk(KERN_DEBUG "lapb: (%p) S1 TX UA(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_UA, frame->pf, lapb_send_control(lapb, LAPB_UA, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
} else { } else {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S1 TX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S1 TX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_DM, frame->pf, lapb_send_control(lapb, LAPB_DM, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -187,9 +187,9 @@ static void lapb_state1_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -187,9 +187,9 @@ static void lapb_state1_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_DISC: case LAPB_DISC:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S1 RX DISC(%d)\n", printk(KERN_DEBUG "lapb: (%p) S1 RX DISC(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
printk(KERN_DEBUG "lapb: (%p) S1 TX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S1 TX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_DM, frame->pf, lapb_send_control(lapb, LAPB_DM, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -198,12 +198,12 @@ static void lapb_state1_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -198,12 +198,12 @@ static void lapb_state1_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_UA: case LAPB_UA:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S1 RX UA(%d)\n", printk(KERN_DEBUG "lapb: (%p) S1 RX UA(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (frame->pf) { if (frame->pf) {
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S1 -> S3\n", printk(KERN_DEBUG "lapb: (%p) S1 -> S3\n",
lapb->token); lapb->dev);
#endif #endif
lapb_stop_t1timer(lapb); lapb_stop_t1timer(lapb);
lapb_stop_t2timer(lapb); lapb_stop_t2timer(lapb);
...@@ -220,12 +220,12 @@ static void lapb_state1_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -220,12 +220,12 @@ static void lapb_state1_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_DM: case LAPB_DM:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S1 RX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S1 RX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (frame->pf) { if (frame->pf) {
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S1 -> S0\n", printk(KERN_DEBUG "lapb: (%p) S1 -> S0\n",
lapb->token); lapb->dev);
#endif #endif
lapb_clear_queues(lapb); lapb_clear_queues(lapb);
lapb->state = LAPB_STATE_0; lapb->state = LAPB_STATE_0;
...@@ -251,9 +251,9 @@ static void lapb_state2_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -251,9 +251,9 @@ static void lapb_state2_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_SABME: case LAPB_SABME:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S2 RX {SABM,SABME}(%d)\n", printk(KERN_DEBUG "lapb: (%p) S2 RX {SABM,SABME}(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
printk(KERN_DEBUG "lapb: (%p) S2 TX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S2 TX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_DM, frame->pf, lapb_send_control(lapb, LAPB_DM, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -262,9 +262,9 @@ static void lapb_state2_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -262,9 +262,9 @@ static void lapb_state2_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_DISC: case LAPB_DISC:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S2 RX DISC(%d)\n", printk(KERN_DEBUG "lapb: (%p) S2 RX DISC(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
printk(KERN_DEBUG "lapb: (%p) S2 TX UA(%d)\n", printk(KERN_DEBUG "lapb: (%p) S2 TX UA(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_UA, frame->pf, lapb_send_control(lapb, LAPB_UA, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -273,12 +273,12 @@ static void lapb_state2_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -273,12 +273,12 @@ static void lapb_state2_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_UA: case LAPB_UA:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S2 RX UA(%d)\n", printk(KERN_DEBUG "lapb: (%p) S2 RX UA(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (frame->pf) { if (frame->pf) {
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S2 -> S0\n", printk(KERN_DEBUG "lapb: (%p) S2 -> S0\n",
lapb->token); lapb->dev);
#endif #endif
lapb->state = LAPB_STATE_0; lapb->state = LAPB_STATE_0;
lapb_start_t1timer(lapb); lapb_start_t1timer(lapb);
...@@ -290,12 +290,12 @@ static void lapb_state2_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -290,12 +290,12 @@ static void lapb_state2_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_DM: case LAPB_DM:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S2 RX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S2 RX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (frame->pf) { if (frame->pf) {
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S2 -> S0\n", printk(KERN_DEBUG "lapb: (%p) S2 -> S0\n",
lapb->token); lapb->dev);
#endif #endif
lapb->state = LAPB_STATE_0; lapb->state = LAPB_STATE_0;
lapb_start_t1timer(lapb); lapb_start_t1timer(lapb);
...@@ -311,9 +311,9 @@ static void lapb_state2_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -311,9 +311,9 @@ static void lapb_state2_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_RR: case LAPB_RR:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S2 RX {I,REJ,RNR,RR}" printk(KERN_DEBUG "lapb: (%p) S2 RX {I,REJ,RNR,RR}"
"(%d)\n", lapb->token, frame->pf); "(%d)\n", lapb->dev, frame->pf);
printk(KERN_DEBUG "lapb: (%p) S2 RX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S2 RX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (frame->pf) if (frame->pf)
lapb_send_control(lapb, LAPB_DM, frame->pf, lapb_send_control(lapb, LAPB_DM, frame->pf,
...@@ -339,19 +339,19 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -339,19 +339,19 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_SABM: case LAPB_SABM:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 RX SABM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S3 RX SABM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (lapb->mode & LAPB_EXTENDED) { if (lapb->mode & LAPB_EXTENDED) {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 TX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S3 TX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_DM, frame->pf, lapb_send_control(lapb, LAPB_DM, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
} else { } else {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 TX UA(%d)\n", printk(KERN_DEBUG "lapb: (%p) S3 TX UA(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_UA, frame->pf, lapb_send_control(lapb, LAPB_UA, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -369,12 +369,12 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -369,12 +369,12 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_SABME: case LAPB_SABME:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 RX SABME(%d)\n", printk(KERN_DEBUG "lapb: (%p) S3 RX SABME(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (lapb->mode & LAPB_EXTENDED) { if (lapb->mode & LAPB_EXTENDED) {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 TX UA(%d)\n", printk(KERN_DEBUG "lapb: (%p) S3 TX UA(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_UA, frame->pf, lapb_send_control(lapb, LAPB_UA, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -389,7 +389,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -389,7 +389,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
} else { } else {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 TX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S3 TX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_DM, frame->pf, lapb_send_control(lapb, LAPB_DM, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -399,11 +399,11 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -399,11 +399,11 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_DISC: case LAPB_DISC:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 RX DISC(%d)\n", printk(KERN_DEBUG "lapb: (%p) S3 RX DISC(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S3 -> S0\n", printk(KERN_DEBUG "lapb: (%p) S3 -> S0\n",
lapb->token); lapb->dev);
#endif #endif
lapb_clear_queues(lapb); lapb_clear_queues(lapb);
lapb_send_control(lapb, LAPB_UA, frame->pf, lapb_send_control(lapb, LAPB_UA, frame->pf,
...@@ -417,11 +417,11 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -417,11 +417,11 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_DM: case LAPB_DM:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 RX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S3 RX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S3 -> S0\n", printk(KERN_DEBUG "lapb: (%p) S3 -> S0\n",
lapb->token); lapb->dev);
#endif #endif
lapb_clear_queues(lapb); lapb_clear_queues(lapb);
lapb->state = LAPB_STATE_0; lapb->state = LAPB_STATE_0;
...@@ -433,7 +433,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -433,7 +433,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_RNR: case LAPB_RNR:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 RX RNR(%d) R%d\n", printk(KERN_DEBUG "lapb: (%p) S3 RX RNR(%d) R%d\n",
lapb->token, frame->pf, frame->nr); lapb->dev, frame->pf, frame->nr);
#endif #endif
lapb->condition |= LAPB_PEER_RX_BUSY_CONDITION; lapb->condition |= LAPB_PEER_RX_BUSY_CONDITION;
lapb_check_need_response(lapb, frame->cr, frame->pf); lapb_check_need_response(lapb, frame->cr, frame->pf);
...@@ -445,7 +445,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -445,7 +445,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
lapb_transmit_frmr(lapb); lapb_transmit_frmr(lapb);
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S3 -> S4\n", printk(KERN_DEBUG "lapb: (%p) S3 -> S4\n",
lapb->token); lapb->dev);
#endif #endif
lapb_start_t1timer(lapb); lapb_start_t1timer(lapb);
lapb_stop_t2timer(lapb); lapb_stop_t2timer(lapb);
...@@ -457,7 +457,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -457,7 +457,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_RR: case LAPB_RR:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 RX RR(%d) R%d\n", printk(KERN_DEBUG "lapb: (%p) S3 RX RR(%d) R%d\n",
lapb->token, frame->pf, frame->nr); lapb->dev, frame->pf, frame->nr);
#endif #endif
lapb->condition &= ~LAPB_PEER_RX_BUSY_CONDITION; lapb->condition &= ~LAPB_PEER_RX_BUSY_CONDITION;
lapb_check_need_response(lapb, frame->cr, frame->pf); lapb_check_need_response(lapb, frame->cr, frame->pf);
...@@ -469,7 +469,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -469,7 +469,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
lapb_transmit_frmr(lapb); lapb_transmit_frmr(lapb);
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S3 -> S4\n", printk(KERN_DEBUG "lapb: (%p) S3 -> S4\n",
lapb->token); lapb->dev);
#endif #endif
lapb_start_t1timer(lapb); lapb_start_t1timer(lapb);
lapb_stop_t2timer(lapb); lapb_stop_t2timer(lapb);
...@@ -481,7 +481,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -481,7 +481,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_REJ: case LAPB_REJ:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 RX REJ(%d) R%d\n", printk(KERN_DEBUG "lapb: (%p) S3 RX REJ(%d) R%d\n",
lapb->token, frame->pf, frame->nr); lapb->dev, frame->pf, frame->nr);
#endif #endif
lapb->condition &= ~LAPB_PEER_RX_BUSY_CONDITION; lapb->condition &= ~LAPB_PEER_RX_BUSY_CONDITION;
lapb_check_need_response(lapb, frame->cr, frame->pf); lapb_check_need_response(lapb, frame->cr, frame->pf);
...@@ -496,7 +496,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -496,7 +496,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
lapb_transmit_frmr(lapb); lapb_transmit_frmr(lapb);
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S3 -> S4\n", printk(KERN_DEBUG "lapb: (%p) S3 -> S4\n",
lapb->token); lapb->dev);
#endif #endif
lapb_start_t1timer(lapb); lapb_start_t1timer(lapb);
lapb_stop_t2timer(lapb); lapb_stop_t2timer(lapb);
...@@ -508,7 +508,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -508,7 +508,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_I: case LAPB_I:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 RX I(%d) S%d R%d\n", printk(KERN_DEBUG "lapb: (%p) S3 RX I(%d) S%d R%d\n",
lapb->token, frame->pf, frame->ns, frame->nr); lapb->dev, frame->pf, frame->ns, frame->nr);
#endif #endif
if (!lapb_validate_nr(lapb, frame->nr)) { if (!lapb_validate_nr(lapb, frame->nr)) {
lapb->frmr_data = *frame; lapb->frmr_data = *frame;
...@@ -516,7 +516,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -516,7 +516,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
lapb_transmit_frmr(lapb); lapb_transmit_frmr(lapb);
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S3 -> S4\n", printk(KERN_DEBUG "lapb: (%p) S3 -> S4\n",
lapb->token); lapb->dev);
#endif #endif
lapb_start_t1timer(lapb); lapb_start_t1timer(lapb);
lapb_stop_t2timer(lapb); lapb_stop_t2timer(lapb);
...@@ -564,7 +564,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -564,7 +564,7 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG printk(KERN_DEBUG
"lapb: (%p) S3 TX REJ(%d) R%d\n", "lapb: (%p) S3 TX REJ(%d) R%d\n",
lapb->token, frame->pf, lapb->vr); lapb->dev, frame->pf, lapb->vr);
#endif #endif
lapb->condition |= LAPB_REJECT_CONDITION; lapb->condition |= LAPB_REJECT_CONDITION;
lapb_send_control(lapb, LAPB_REJ, lapb_send_control(lapb, LAPB_REJ,
...@@ -578,14 +578,14 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -578,14 +578,14 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_FRMR: case LAPB_FRMR:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 RX FRMR(%d) %02X " printk(KERN_DEBUG "lapb: (%p) S3 RX FRMR(%d) %02X "
"%02X %02X %02X %02X\n", lapb->token, frame->pf, "%02X %02X %02X %02X\n", lapb->dev, frame->pf,
skb->data[0], skb->data[1], skb->data[2], skb->data[0], skb->data[1], skb->data[2],
skb->data[3], skb->data[4]); skb->data[3], skb->data[4]);
#endif #endif
lapb_establish_data_link(lapb); lapb_establish_data_link(lapb);
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S3 -> S1\n", printk(KERN_DEBUG "lapb: (%p) S3 -> S1\n",
lapb->token); lapb->dev);
#endif #endif
lapb_requeue_frames(lapb); lapb_requeue_frames(lapb);
lapb->state = LAPB_STATE_1; lapb->state = LAPB_STATE_1;
...@@ -594,13 +594,13 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -594,13 +594,13 @@ static void lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_ILLEGAL: case LAPB_ILLEGAL:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S3 RX ILLEGAL(%d)\n", printk(KERN_DEBUG "lapb: (%p) S3 RX ILLEGAL(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb->frmr_data = *frame; lapb->frmr_data = *frame;
lapb->frmr_type = LAPB_FRMR_W; lapb->frmr_type = LAPB_FRMR_W;
lapb_transmit_frmr(lapb); lapb_transmit_frmr(lapb);
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S3 -> S4\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S3 -> S4\n", lapb->dev);
#endif #endif
lapb_start_t1timer(lapb); lapb_start_t1timer(lapb);
lapb_stop_t2timer(lapb); lapb_stop_t2timer(lapb);
...@@ -624,23 +624,23 @@ static void lapb_state4_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -624,23 +624,23 @@ static void lapb_state4_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_SABM: case LAPB_SABM:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S4 RX SABM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S4 RX SABM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (lapb->mode & LAPB_EXTENDED) { if (lapb->mode & LAPB_EXTENDED) {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S4 TX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S4 TX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_DM, frame->pf, lapb_send_control(lapb, LAPB_DM, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
} else { } else {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S4 TX UA(%d)\n", printk(KERN_DEBUG "lapb: (%p) S4 TX UA(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S4 -> S3\n", printk(KERN_DEBUG "lapb: (%p) S4 -> S3\n",
lapb->token); lapb->dev);
#endif #endif
lapb_send_control(lapb, LAPB_UA, frame->pf, lapb_send_control(lapb, LAPB_UA, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -659,16 +659,16 @@ static void lapb_state4_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -659,16 +659,16 @@ static void lapb_state4_machine(struct lapb_cb *lapb, struct sk_buff *skb,
case LAPB_SABME: case LAPB_SABME:
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S4 RX SABME(%d)\n", printk(KERN_DEBUG "lapb: (%p) S4 RX SABME(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
if (lapb->mode & LAPB_EXTENDED) { if (lapb->mode & LAPB_EXTENDED) {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S4 TX UA(%d)\n", printk(KERN_DEBUG "lapb: (%p) S4 TX UA(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S4 -> S3\n", printk(KERN_DEBUG "lapb: (%p) S4 -> S3\n",
lapb->token); lapb->dev);
#endif #endif
lapb_send_control(lapb, LAPB_UA, frame->pf, lapb_send_control(lapb, LAPB_UA, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
...@@ -684,7 +684,7 @@ static void lapb_state4_machine(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -684,7 +684,7 @@ static void lapb_state4_machine(struct lapb_cb *lapb, struct sk_buff *skb,
} else { } else {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S4 TX DM(%d)\n", printk(KERN_DEBUG "lapb: (%p) S4 TX DM(%d)\n",
lapb->token, frame->pf); lapb->dev, frame->pf);
#endif #endif
lapb_send_control(lapb, LAPB_DM, frame->pf, lapb_send_control(lapb, LAPB_DM, frame->pf,
LAPB_RESPONSE); LAPB_RESPONSE);
......
...@@ -63,7 +63,7 @@ static void lapb_send_iframe(struct lapb_cb *lapb, struct sk_buff *skb, int poll ...@@ -63,7 +63,7 @@ static void lapb_send_iframe(struct lapb_cb *lapb, struct sk_buff *skb, int poll
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S%d TX I(%d) S%d R%d\n", printk(KERN_DEBUG "lapb: (%p) S%d TX I(%d) S%d R%d\n",
lapb->token, lapb->state, poll_bit, lapb->vs, lapb->vr); lapb->dev, lapb->state, poll_bit, lapb->vs, lapb->vr);
#endif #endif
lapb_transmit_buffer(lapb, skb, LAPB_COMMAND); lapb_transmit_buffer(lapb, skb, LAPB_COMMAND);
...@@ -151,7 +151,7 @@ void lapb_transmit_buffer(struct lapb_cb *lapb, struct sk_buff *skb, int type) ...@@ -151,7 +151,7 @@ void lapb_transmit_buffer(struct lapb_cb *lapb, struct sk_buff *skb, int type)
#if LAPB_DEBUG > 2 #if LAPB_DEBUG > 2
printk(KERN_DEBUG "lapb: (%p) S%d TX %02X %02X %02X\n", printk(KERN_DEBUG "lapb: (%p) S%d TX %02X %02X %02X\n",
lapb->token, lapb->state, lapb->dev, lapb->state,
skb->data[0], skb->data[1], skb->data[2]); skb->data[0], skb->data[1], skb->data[2]);
#endif #endif
...@@ -167,13 +167,13 @@ void lapb_establish_data_link(struct lapb_cb *lapb) ...@@ -167,13 +167,13 @@ void lapb_establish_data_link(struct lapb_cb *lapb)
if (lapb->mode & LAPB_EXTENDED) { if (lapb->mode & LAPB_EXTENDED) {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S%d TX SABME(1)\n", printk(KERN_DEBUG "lapb: (%p) S%d TX SABME(1)\n",
lapb->token, lapb->state); lapb->dev, lapb->state);
#endif #endif
lapb_send_control(lapb, LAPB_SABME, LAPB_POLLON, LAPB_COMMAND); lapb_send_control(lapb, LAPB_SABME, LAPB_POLLON, LAPB_COMMAND);
} else { } else {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S%d TX SABM(1)\n", printk(KERN_DEBUG "lapb: (%p) S%d TX SABM(1)\n",
lapb->token, lapb->state); lapb->dev, lapb->state);
#endif #endif
lapb_send_control(lapb, LAPB_SABM, LAPB_POLLON, LAPB_COMMAND); lapb_send_control(lapb, LAPB_SABM, LAPB_POLLON, LAPB_COMMAND);
} }
...@@ -186,7 +186,7 @@ void lapb_enquiry_response(struct lapb_cb *lapb) ...@@ -186,7 +186,7 @@ void lapb_enquiry_response(struct lapb_cb *lapb)
{ {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S%d TX RR(1) R%d\n", printk(KERN_DEBUG "lapb: (%p) S%d TX RR(1) R%d\n",
lapb->token, lapb->state, lapb->vr); lapb->dev, lapb->state, lapb->vr);
#endif #endif
lapb_send_control(lapb, LAPB_RR, LAPB_POLLON, LAPB_RESPONSE); lapb_send_control(lapb, LAPB_RR, LAPB_POLLON, LAPB_RESPONSE);
...@@ -198,7 +198,7 @@ void lapb_timeout_response(struct lapb_cb *lapb) ...@@ -198,7 +198,7 @@ void lapb_timeout_response(struct lapb_cb *lapb)
{ {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S%d TX RR(0) R%d\n", printk(KERN_DEBUG "lapb: (%p) S%d TX RR(0) R%d\n",
lapb->token, lapb->state, lapb->vr); lapb->dev, lapb->state, lapb->vr);
#endif #endif
lapb_send_control(lapb, LAPB_RR, LAPB_POLLOFF, LAPB_RESPONSE); lapb_send_control(lapb, LAPB_RR, LAPB_POLLOFF, LAPB_RESPONSE);
......
...@@ -114,7 +114,7 @@ int lapb_decode(struct lapb_cb *lapb, struct sk_buff *skb, ...@@ -114,7 +114,7 @@ int lapb_decode(struct lapb_cb *lapb, struct sk_buff *skb,
#if LAPB_DEBUG > 2 #if LAPB_DEBUG > 2
printk(KERN_DEBUG "lapb: (%p) S%d RX %02X %02X %02X\n", printk(KERN_DEBUG "lapb: (%p) S%d RX %02X %02X %02X\n",
lapb->token, lapb->state, lapb->dev, lapb->state,
skb->data[0], skb->data[1], skb->data[2]); skb->data[0], skb->data[1], skb->data[2]);
#endif #endif
...@@ -287,7 +287,7 @@ void lapb_transmit_frmr(struct lapb_cb *lapb) ...@@ -287,7 +287,7 @@ void lapb_transmit_frmr(struct lapb_cb *lapb)
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S%d TX FRMR %02X %02X %02X %02X %02X\n", printk(KERN_DEBUG "lapb: (%p) S%d TX FRMR %02X %02X %02X %02X %02X\n",
lapb->token, lapb->state, lapb->dev, lapb->state,
skb->data[1], skb->data[2], skb->data[3], skb->data[1], skb->data[2], skb->data[3],
skb->data[4], skb->data[5]); skb->data[4], skb->data[5]);
#endif #endif
...@@ -304,7 +304,7 @@ void lapb_transmit_frmr(struct lapb_cb *lapb) ...@@ -304,7 +304,7 @@ void lapb_transmit_frmr(struct lapb_cb *lapb)
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S%d TX FRMR %02X %02X %02X\n", printk(KERN_DEBUG "lapb: (%p) S%d TX FRMR %02X %02X %02X\n",
lapb->token, lapb->state, skb->data[1], lapb->dev, lapb->state, skb->data[1],
skb->data[2], skb->data[3]); skb->data[2], skb->data[3]);
#endif #endif
} }
......
...@@ -107,19 +107,19 @@ static void lapb_t1timer_expiry(unsigned long param) ...@@ -107,19 +107,19 @@ static void lapb_t1timer_expiry(unsigned long param)
lapb->state = LAPB_STATE_0; lapb->state = LAPB_STATE_0;
lapb_disconnect_indication(lapb, LAPB_TIMEDOUT); lapb_disconnect_indication(lapb, LAPB_TIMEDOUT);
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S1 -> S0\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S1 -> S0\n", lapb->dev);
#endif #endif
return; return;
} else { } else {
lapb->n2count++; lapb->n2count++;
if (lapb->mode & LAPB_EXTENDED) { if (lapb->mode & LAPB_EXTENDED) {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S1 TX SABME(1)\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S1 TX SABME(1)\n", lapb->dev);
#endif #endif
lapb_send_control(lapb, LAPB_SABME, LAPB_POLLON, LAPB_COMMAND); lapb_send_control(lapb, LAPB_SABME, LAPB_POLLON, LAPB_COMMAND);
} else { } else {
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S1 TX SABM(1)\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S1 TX SABM(1)\n", lapb->dev);
#endif #endif
lapb_send_control(lapb, LAPB_SABM, LAPB_POLLON, LAPB_COMMAND); lapb_send_control(lapb, LAPB_SABM, LAPB_POLLON, LAPB_COMMAND);
} }
...@@ -135,13 +135,13 @@ static void lapb_t1timer_expiry(unsigned long param) ...@@ -135,13 +135,13 @@ static void lapb_t1timer_expiry(unsigned long param)
lapb->state = LAPB_STATE_0; lapb->state = LAPB_STATE_0;
lapb_disconnect_confirmation(lapb, LAPB_TIMEDOUT); lapb_disconnect_confirmation(lapb, LAPB_TIMEDOUT);
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S2 -> S0\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S2 -> S0\n", lapb->dev);
#endif #endif
return; return;
} else { } else {
lapb->n2count++; lapb->n2count++;
#if LAPB_DEBUG > 1 #if LAPB_DEBUG > 1
printk(KERN_DEBUG "lapb: (%p) S2 TX DISC(1)\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S2 TX DISC(1)\n", lapb->dev);
#endif #endif
lapb_send_control(lapb, LAPB_DISC, LAPB_POLLON, LAPB_COMMAND); lapb_send_control(lapb, LAPB_DISC, LAPB_POLLON, LAPB_COMMAND);
} }
...@@ -157,7 +157,7 @@ static void lapb_t1timer_expiry(unsigned long param) ...@@ -157,7 +157,7 @@ static void lapb_t1timer_expiry(unsigned long param)
lapb_stop_t2timer(lapb); lapb_stop_t2timer(lapb);
lapb_disconnect_indication(lapb, LAPB_TIMEDOUT); lapb_disconnect_indication(lapb, LAPB_TIMEDOUT);
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S3 -> S0\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S3 -> S0\n", lapb->dev);
#endif #endif
return; return;
} else { } else {
...@@ -175,7 +175,7 @@ static void lapb_t1timer_expiry(unsigned long param) ...@@ -175,7 +175,7 @@ static void lapb_t1timer_expiry(unsigned long param)
lapb->state = LAPB_STATE_0; lapb->state = LAPB_STATE_0;
lapb_disconnect_indication(lapb, LAPB_TIMEDOUT); lapb_disconnect_indication(lapb, LAPB_TIMEDOUT);
#if LAPB_DEBUG > 0 #if LAPB_DEBUG > 0
printk(KERN_DEBUG "lapb: (%p) S4 -> S0\n", lapb->token); printk(KERN_DEBUG "lapb: (%p) S4 -> S0\n", lapb->dev);
#endif #endif
return; return;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment