net: sctp: rework debugging framework to use pr_debug and friends
[firefly-linux-kernel-4.4.55.git] / net / sctp / input.c
index 4cfc74699a3ff75d3daedbb24bf27b6e3d11f93c..3fa4d858c35a508b56cf56bce9a3c0078c6379c0 100644 (file)
@@ -454,8 +454,6 @@ void sctp_icmp_proto_unreachable(struct sock *sk,
                           struct sctp_association *asoc,
                           struct sctp_transport *t)
 {
-       SCTP_DEBUG_PRINTK("%s\n",  __func__);
-
        if (sock_owned_by_user(sk)) {
                if (timer_pending(&t->proto_unreach_timer))
                        return;
@@ -464,10 +462,12 @@ void sctp_icmp_proto_unreachable(struct sock *sk,
                                                jiffies + (HZ/20)))
                                sctp_association_hold(asoc);
                }
-                       
        } else {
                struct net *net = sock_net(sk);
 
+               pr_debug("%s: unrecognized next header type "
+                        "encountered!\n", __func__);
+
                if (del_timer(&t->proto_unreach_timer))
                        sctp_association_put(asoc);