aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_make_chunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r--net/sctp/sm_make_chunk.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c
index dd71f1f9ba10..362ae6e2fd93 100644
--- a/net/sctp/sm_make_chunk.c
+++ b/net/sctp/sm_make_chunk.c
@@ -741,7 +741,8 @@ struct sctp_chunk *sctp_make_sack(const struct sctp_association *asoc)
741 741
742 memset(gabs, 0, sizeof(gabs)); 742 memset(gabs, 0, sizeof(gabs));
743 ctsn = sctp_tsnmap_get_ctsn(map); 743 ctsn = sctp_tsnmap_get_ctsn(map);
744 SCTP_DEBUG_PRINTK("sackCTSNAck sent: 0x%x.\n", ctsn); 744
745 pr_debug("%s: sackCTSNAck sent:0x%x\n", __func__, ctsn);
745 746
746 /* How much room is needed in the chunk? */ 747 /* How much room is needed in the chunk? */
747 num_gabs = sctp_tsnmap_num_gabs(map, gabs); 748 num_gabs = sctp_tsnmap_num_gabs(map, gabs);
@@ -1287,10 +1288,8 @@ struct sctp_chunk *sctp_chunkify(struct sk_buff *skb,
1287 1288
1288 if (!retval) 1289 if (!retval)
1289 goto nodata; 1290 goto nodata;
1290 1291 if (!sk)
1291 if (!sk) { 1292 pr_debug("%s: chunkifying skb:%p w/o an sk\n", __func__, skb);
1292 SCTP_DEBUG_PRINTK("chunkifying skb %p w/o an sk\n", skb);
1293 }
1294 1293
1295 INIT_LIST_HEAD(&retval->list); 1294 INIT_LIST_HEAD(&retval->list);
1296 retval->skb = skb; 1295 retval->skb = skb;
@@ -2191,8 +2190,9 @@ static sctp_ierror_t sctp_verify_param(struct net *net,
2191 break; 2190 break;
2192fallthrough: 2191fallthrough:
2193 default: 2192 default:
2194 SCTP_DEBUG_PRINTK("Unrecognized param: %d for chunk %d.\n", 2193 pr_debug("%s: unrecognized param:%d for chunk:%d\n",
2195 ntohs(param.p->type), cid); 2194 __func__, ntohs(param.p->type), cid);
2195
2196 retval = sctp_process_unk_param(asoc, param, chunk, err_chunk); 2196 retval = sctp_process_unk_param(asoc, param, chunk, err_chunk);
2197 break; 2197 break;
2198 } 2198 }
@@ -2516,7 +2516,7 @@ do_addr_param:
2516 break; 2516 break;
2517 2517
2518 case SCTP_PARAM_HOST_NAME_ADDRESS: 2518 case SCTP_PARAM_HOST_NAME_ADDRESS:
2519 SCTP_DEBUG_PRINTK("unimplemented SCTP_HOST_NAME_ADDRESS\n"); 2519 pr_debug("%s: unimplemented SCTP_HOST_NAME_ADDRESS\n", __func__);
2520 break; 2520 break;
2521 2521
2522 case SCTP_PARAM_SUPPORTED_ADDRESS_TYPES: 2522 case SCTP_PARAM_SUPPORTED_ADDRESS_TYPES:
@@ -2662,8 +2662,8 @@ fall_through:
2662 * called prior to this routine. Simply log the error 2662 * called prior to this routine. Simply log the error
2663 * here. 2663 * here.
2664 */ 2664 */
2665 SCTP_DEBUG_PRINTK("Ignoring param: %d for association %p.\n", 2665 pr_debug("%s: ignoring param:%d for association:%p.\n",
2666 ntohs(param.p->type), asoc); 2666 __func__, ntohs(param.p->type), asoc);
2667 break; 2667 break;
2668 } 2668 }
2669 2669
@@ -2805,7 +2805,10 @@ struct sctp_chunk *sctp_make_asconf_update_ip(struct sctp_association *asoc,
2805 totallen += paramlen; 2805 totallen += paramlen;
2806 totallen += addr_param_len; 2806 totallen += addr_param_len;
2807 del_pickup = 1; 2807 del_pickup = 1;
2808 SCTP_DEBUG_PRINTK("mkasconf_update_ip: picked same-scope del_pending addr, totallen for all addresses is %d\n", totallen); 2808
2809 pr_debug("%s: picked same-scope del_pending addr, "
2810 "totallen for all addresses is %d\n",
2811 __func__, totallen);
2809 } 2812 }
2810 } 2813 }
2811 2814