aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda/iriap_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/irda/iriap_event.c')
-rw-r--r--net/irda/iriap_event.c38
1 files changed, 16 insertions, 22 deletions
diff --git a/net/irda/iriap_event.c b/net/irda/iriap_event.c
index 09de4efc73a7..e6098b2e048a 100644
--- a/net/irda/iriap_event.c
+++ b/net/irda/iriap_event.c
@@ -187,7 +187,7 @@ static void state_s_disconnect(struct iriap_cb *self, IRIAP_EVENT event,
187 case IAP_LM_DISCONNECT_INDICATION: 187 case IAP_LM_DISCONNECT_INDICATION:
188 break; 188 break;
189 default: 189 default:
190 IRDA_DEBUG(0, "%s(), Unknown event %d\n", __func__, event); 190 pr_debug("%s(), Unknown event %d\n", __func__, event);
191 break; 191 break;
192 } 192 }
193} 193}
@@ -219,7 +219,7 @@ static void state_s_connecting(struct iriap_cb *self, IRIAP_EVENT event,
219 iriap_next_client_state(self, S_DISCONNECT); 219 iriap_next_client_state(self, S_DISCONNECT);
220 break; 220 break;
221 default: 221 default:
222 IRDA_DEBUG(0, "%s(), Unknown event %d\n", __func__, event); 222 pr_debug("%s(), Unknown event %d\n", __func__, event);
223 break; 223 break;
224 } 224 }
225} 225}
@@ -243,7 +243,7 @@ static void state_s_call(struct iriap_cb *self, IRIAP_EVENT event,
243 iriap_next_client_state(self, S_DISCONNECT); 243 iriap_next_client_state(self, S_DISCONNECT);
244 break; 244 break;
245 default: 245 default:
246 IRDA_DEBUG(0, "state_s_call: Unknown event %d\n", event); 246 pr_debug("state_s_call: Unknown event %d\n", event);
247 break; 247 break;
248 } 248 }
249} 249}
@@ -271,7 +271,7 @@ static void state_s_make_call(struct iriap_cb *self, IRIAP_EVENT event,
271 iriap_next_call_state(self, S_OUTSTANDING); 271 iriap_next_call_state(self, S_OUTSTANDING);
272 break; 272 break;
273 default: 273 default:
274 IRDA_DEBUG(0, "%s(), Unknown event %d\n", __func__, event); 274 pr_debug("%s(), Unknown event %d\n", __func__, event);
275 break; 275 break;
276 } 276 }
277} 277}
@@ -285,7 +285,7 @@ static void state_s_make_call(struct iriap_cb *self, IRIAP_EVENT event,
285static void state_s_calling(struct iriap_cb *self, IRIAP_EVENT event, 285static void state_s_calling(struct iriap_cb *self, IRIAP_EVENT event,
286 struct sk_buff *skb) 286 struct sk_buff *skb)
287{ 287{
288 IRDA_DEBUG(0, "%s(), Not implemented\n", __func__); 288 pr_debug("%s(), Not implemented\n", __func__);
289} 289}
290 290
291/* 291/*
@@ -307,7 +307,7 @@ static void state_s_outstanding(struct iriap_cb *self, IRIAP_EVENT event,
307 iriap_next_call_state(self, S_WAIT_FOR_CALL); 307 iriap_next_call_state(self, S_WAIT_FOR_CALL);
308 break; 308 break;
309 default: 309 default:
310 IRDA_DEBUG(0, "%s(), Unknown event %d\n", __func__, event); 310 pr_debug("%s(), Unknown event %d\n", __func__, event);
311 break; 311 break;
312 } 312 }
313} 313}
@@ -320,7 +320,7 @@ static void state_s_outstanding(struct iriap_cb *self, IRIAP_EVENT event,
320static void state_s_replying(struct iriap_cb *self, IRIAP_EVENT event, 320static void state_s_replying(struct iriap_cb *self, IRIAP_EVENT event,
321 struct sk_buff *skb) 321 struct sk_buff *skb)
322{ 322{
323 IRDA_DEBUG(0, "%s(), Not implemented\n", __func__); 323 pr_debug("%s(), Not implemented\n", __func__);
324} 324}
325 325
326/* 326/*
@@ -332,7 +332,7 @@ static void state_s_replying(struct iriap_cb *self, IRIAP_EVENT event,
332static void state_s_wait_for_call(struct iriap_cb *self, IRIAP_EVENT event, 332static void state_s_wait_for_call(struct iriap_cb *self, IRIAP_EVENT event,
333 struct sk_buff *skb) 333 struct sk_buff *skb)
334{ 334{
335 IRDA_DEBUG(0, "%s(), Not implemented\n", __func__); 335 pr_debug("%s(), Not implemented\n", __func__);
336} 336}
337 337
338 338
@@ -345,7 +345,7 @@ static void state_s_wait_for_call(struct iriap_cb *self, IRIAP_EVENT event,
345static void state_s_wait_active(struct iriap_cb *self, IRIAP_EVENT event, 345static void state_s_wait_active(struct iriap_cb *self, IRIAP_EVENT event,
346 struct sk_buff *skb) 346 struct sk_buff *skb)
347{ 347{
348 IRDA_DEBUG(0, "%s(), Not implemented\n", __func__); 348 pr_debug("%s(), Not implemented\n", __func__);
349} 349}
350 350
351/************************************************************************** 351/**************************************************************************
@@ -386,7 +386,7 @@ static void state_r_disconnect(struct iriap_cb *self, IRIAP_EVENT event,
386 iriap_next_r_connect_state(self, R_RECEIVING); 386 iriap_next_r_connect_state(self, R_RECEIVING);
387 break; 387 break;
388 default: 388 default:
389 IRDA_DEBUG(0, "%s(), unknown event %d\n", __func__, event); 389 pr_debug("%s(), unknown event %d\n", __func__, event);
390 break; 390 break;
391 } 391 }
392} 392}
@@ -397,8 +397,6 @@ static void state_r_disconnect(struct iriap_cb *self, IRIAP_EVENT event,
397static void state_r_call(struct iriap_cb *self, IRIAP_EVENT event, 397static void state_r_call(struct iriap_cb *self, IRIAP_EVENT event,
398 struct sk_buff *skb) 398 struct sk_buff *skb)
399{ 399{
400 IRDA_DEBUG(4, "%s()\n", __func__);
401
402 switch (event) { 400 switch (event) {
403 case IAP_LM_DISCONNECT_INDICATION: 401 case IAP_LM_DISCONNECT_INDICATION:
404 /* Abort call */ 402 /* Abort call */
@@ -406,7 +404,7 @@ static void state_r_call(struct iriap_cb *self, IRIAP_EVENT event,
406 iriap_next_r_connect_state(self, R_WAITING); 404 iriap_next_r_connect_state(self, R_WAITING);
407 break; 405 break;
408 default: 406 default:
409 IRDA_DEBUG(0, "%s(), unknown event!\n", __func__); 407 pr_debug("%s(), unknown event!\n", __func__);
410 break; 408 break;
411 } 409 }
412} 410}
@@ -421,13 +419,13 @@ static void state_r_call(struct iriap_cb *self, IRIAP_EVENT event,
421static void state_r_waiting(struct iriap_cb *self, IRIAP_EVENT event, 419static void state_r_waiting(struct iriap_cb *self, IRIAP_EVENT event,
422 struct sk_buff *skb) 420 struct sk_buff *skb)
423{ 421{
424 IRDA_DEBUG(0, "%s(), Not implemented\n", __func__); 422 pr_debug("%s(), Not implemented\n", __func__);
425} 423}
426 424
427static void state_r_wait_active(struct iriap_cb *self, IRIAP_EVENT event, 425static void state_r_wait_active(struct iriap_cb *self, IRIAP_EVENT event,
428 struct sk_buff *skb) 426 struct sk_buff *skb)
429{ 427{
430 IRDA_DEBUG(0, "%s(), Not implemented\n", __func__); 428 pr_debug("%s(), Not implemented\n", __func__);
431} 429}
432 430
433/* 431/*
@@ -439,8 +437,6 @@ static void state_r_wait_active(struct iriap_cb *self, IRIAP_EVENT event,
439static void state_r_receiving(struct iriap_cb *self, IRIAP_EVENT event, 437static void state_r_receiving(struct iriap_cb *self, IRIAP_EVENT event,
440 struct sk_buff *skb) 438 struct sk_buff *skb)
441{ 439{
442 IRDA_DEBUG(4, "%s()\n", __func__);
443
444 switch (event) { 440 switch (event) {
445 case IAP_RECV_F_LST: 441 case IAP_RECV_F_LST:
446 iriap_next_r_connect_state(self, R_EXECUTE); 442 iriap_next_r_connect_state(self, R_EXECUTE);
@@ -448,7 +444,7 @@ static void state_r_receiving(struct iriap_cb *self, IRIAP_EVENT event,
448 iriap_call_indication(self, skb); 444 iriap_call_indication(self, skb);
449 break; 445 break;
450 default: 446 default:
451 IRDA_DEBUG(0, "%s(), unknown event!\n", __func__); 447 pr_debug("%s(), unknown event!\n", __func__);
452 break; 448 break;
453 } 449 }
454} 450}
@@ -462,8 +458,6 @@ static void state_r_receiving(struct iriap_cb *self, IRIAP_EVENT event,
462static void state_r_execute(struct iriap_cb *self, IRIAP_EVENT event, 458static void state_r_execute(struct iriap_cb *self, IRIAP_EVENT event,
463 struct sk_buff *skb) 459 struct sk_buff *skb)
464{ 460{
465 IRDA_DEBUG(4, "%s()\n", __func__);
466
467 IRDA_ASSERT(skb != NULL, return;); 461 IRDA_ASSERT(skb != NULL, return;);
468 IRDA_ASSERT(self != NULL, return;); 462 IRDA_ASSERT(self != NULL, return;);
469 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); 463 IRDA_ASSERT(self->magic == IAS_MAGIC, return;);
@@ -483,7 +477,7 @@ static void state_r_execute(struct iriap_cb *self, IRIAP_EVENT event,
483 irlmp_data_request(self->lsap, skb); 477 irlmp_data_request(self->lsap, skb);
484 break; 478 break;
485 default: 479 default:
486 IRDA_DEBUG(0, "%s(), unknown event!\n", __func__); 480 pr_debug("%s(), unknown event!\n", __func__);
487 break; 481 break;
488 } 482 }
489} 483}
@@ -491,7 +485,7 @@ static void state_r_execute(struct iriap_cb *self, IRIAP_EVENT event,
491static void state_r_returning(struct iriap_cb *self, IRIAP_EVENT event, 485static void state_r_returning(struct iriap_cb *self, IRIAP_EVENT event,
492 struct sk_buff *skb) 486 struct sk_buff *skb)
493{ 487{
494 IRDA_DEBUG(0, "%s(), event=%d\n", __func__, event); 488 pr_debug("%s(), event=%d\n", __func__, event);
495 489
496 switch (event) { 490 switch (event) {
497 case IAP_RECV_F_LST: 491 case IAP_RECV_F_LST: