diff options
Diffstat (limited to 'net/llc/llc_conn.c')
-rw-r--r-- | net/llc/llc_conn.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/net/llc/llc_conn.c b/net/llc/llc_conn.c index 441bc18f996d..5ebfd93ff5e7 100644 --- a/net/llc/llc_conn.c +++ b/net/llc/llc_conn.c | |||
@@ -73,7 +73,7 @@ int llc_conn_state_process(struct sock *sk, struct sk_buff *skb) | |||
73 | */ | 73 | */ |
74 | rc = llc_conn_service(skb->sk, skb); | 74 | rc = llc_conn_service(skb->sk, skb); |
75 | if (unlikely(rc != 0)) { | 75 | if (unlikely(rc != 0)) { |
76 | printk(KERN_ERR "%s: llc_conn_service failed\n", __FUNCTION__); | 76 | printk(KERN_ERR "%s: llc_conn_service failed\n", __func__); |
77 | goto out_kfree_skb; | 77 | goto out_kfree_skb; |
78 | } | 78 | } |
79 | 79 | ||
@@ -99,7 +99,7 @@ int llc_conn_state_process(struct sock *sk, struct sk_buff *skb) | |||
99 | * shouldn't happen | 99 | * shouldn't happen |
100 | */ | 100 | */ |
101 | printk(KERN_ERR "%s: sock_queue_rcv_skb failed!\n", | 101 | printk(KERN_ERR "%s: sock_queue_rcv_skb failed!\n", |
102 | __FUNCTION__); | 102 | __func__); |
103 | kfree_skb(skb); | 103 | kfree_skb(skb); |
104 | } | 104 | } |
105 | break; | 105 | break; |
@@ -132,13 +132,13 @@ int llc_conn_state_process(struct sock *sk, struct sk_buff *skb) | |||
132 | * FIXME: | 132 | * FIXME: |
133 | * RESET is not being notified to upper layers for now | 133 | * RESET is not being notified to upper layers for now |
134 | */ | 134 | */ |
135 | printk(KERN_INFO "%s: received a reset ind!\n", __FUNCTION__); | 135 | printk(KERN_INFO "%s: received a reset ind!\n", __func__); |
136 | kfree_skb(skb); | 136 | kfree_skb(skb); |
137 | break; | 137 | break; |
138 | default: | 138 | default: |
139 | if (ev->ind_prim) { | 139 | if (ev->ind_prim) { |
140 | printk(KERN_INFO "%s: received unknown %d prim!\n", | 140 | printk(KERN_INFO "%s: received unknown %d prim!\n", |
141 | __FUNCTION__, ev->ind_prim); | 141 | __func__, ev->ind_prim); |
142 | kfree_skb(skb); | 142 | kfree_skb(skb); |
143 | } | 143 | } |
144 | /* No indication */ | 144 | /* No indication */ |
@@ -179,12 +179,12 @@ int llc_conn_state_process(struct sock *sk, struct sk_buff *skb) | |||
179 | * FIXME: | 179 | * FIXME: |
180 | * RESET is not being notified to upper layers for now | 180 | * RESET is not being notified to upper layers for now |
181 | */ | 181 | */ |
182 | printk(KERN_INFO "%s: received a reset conf!\n", __FUNCTION__); | 182 | printk(KERN_INFO "%s: received a reset conf!\n", __func__); |
183 | break; | 183 | break; |
184 | default: | 184 | default: |
185 | if (ev->cfm_prim) { | 185 | if (ev->cfm_prim) { |
186 | printk(KERN_INFO "%s: received unknown %d prim!\n", | 186 | printk(KERN_INFO "%s: received unknown %d prim!\n", |
187 | __FUNCTION__, ev->cfm_prim); | 187 | __func__, ev->cfm_prim); |
188 | break; | 188 | break; |
189 | } | 189 | } |
190 | goto out_skb_put; /* No confirmation */ | 190 | goto out_skb_put; /* No confirmation */ |
@@ -759,7 +759,7 @@ void llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb) | |||
759 | if (!sock_owned_by_user(sk)) | 759 | if (!sock_owned_by_user(sk)) |
760 | llc_conn_rcv(sk, skb); | 760 | llc_conn_rcv(sk, skb); |
761 | else { | 761 | else { |
762 | dprintk("%s: adding to backlog...\n", __FUNCTION__); | 762 | dprintk("%s: adding to backlog...\n", __func__); |
763 | llc_set_backlog_type(skb, LLC_PACKET); | 763 | llc_set_backlog_type(skb, LLC_PACKET); |
764 | sk_add_backlog(sk, skb); | 764 | sk_add_backlog(sk, skb); |
765 | } | 765 | } |
@@ -807,7 +807,7 @@ static int llc_backlog_rcv(struct sock *sk, struct sk_buff *skb) | |||
807 | else | 807 | else |
808 | goto out_kfree_skb; | 808 | goto out_kfree_skb; |
809 | } else { | 809 | } else { |
810 | printk(KERN_ERR "%s: invalid skb in backlog\n", __FUNCTION__); | 810 | printk(KERN_ERR "%s: invalid skb in backlog\n", __func__); |
811 | goto out_kfree_skb; | 811 | goto out_kfree_skb; |
812 | } | 812 | } |
813 | out: | 813 | out: |
@@ -874,7 +874,7 @@ struct sock *llc_sk_alloc(struct net *net, int family, gfp_t priority, struct pr | |||
874 | #ifdef LLC_REFCNT_DEBUG | 874 | #ifdef LLC_REFCNT_DEBUG |
875 | atomic_inc(&llc_sock_nr); | 875 | atomic_inc(&llc_sock_nr); |
876 | printk(KERN_DEBUG "LLC socket %p created in %s, now we have %d alive\n", sk, | 876 | printk(KERN_DEBUG "LLC socket %p created in %s, now we have %d alive\n", sk, |
877 | __FUNCTION__, atomic_read(&llc_sock_nr)); | 877 | __func__, atomic_read(&llc_sock_nr)); |
878 | #endif | 878 | #endif |
879 | out: | 879 | out: |
880 | return sk; | 880 | return sk; |
@@ -894,7 +894,7 @@ void llc_sk_free(struct sock *sk) | |||
894 | /* Stop all (possibly) running timers */ | 894 | /* Stop all (possibly) running timers */ |
895 | llc_conn_ac_stop_all_timers(sk, NULL); | 895 | llc_conn_ac_stop_all_timers(sk, NULL); |
896 | #ifdef DEBUG_LLC_CONN_ALLOC | 896 | #ifdef DEBUG_LLC_CONN_ALLOC |
897 | printk(KERN_INFO "%s: unackq=%d, txq=%d\n", __FUNCTION__, | 897 | printk(KERN_INFO "%s: unackq=%d, txq=%d\n", __func__, |
898 | skb_queue_len(&llc->pdu_unack_q), | 898 | skb_queue_len(&llc->pdu_unack_q), |
899 | skb_queue_len(&sk->sk_write_queue)); | 899 | skb_queue_len(&sk->sk_write_queue)); |
900 | #endif | 900 | #endif |
@@ -904,13 +904,13 @@ void llc_sk_free(struct sock *sk) | |||
904 | #ifdef LLC_REFCNT_DEBUG | 904 | #ifdef LLC_REFCNT_DEBUG |
905 | if (atomic_read(&sk->sk_refcnt) != 1) { | 905 | if (atomic_read(&sk->sk_refcnt) != 1) { |
906 | printk(KERN_DEBUG "Destruction of LLC sock %p delayed in %s, cnt=%d\n", | 906 | printk(KERN_DEBUG "Destruction of LLC sock %p delayed in %s, cnt=%d\n", |
907 | sk, __FUNCTION__, atomic_read(&sk->sk_refcnt)); | 907 | sk, __func__, atomic_read(&sk->sk_refcnt)); |
908 | printk(KERN_DEBUG "%d LLC sockets are still alive\n", | 908 | printk(KERN_DEBUG "%d LLC sockets are still alive\n", |
909 | atomic_read(&llc_sock_nr)); | 909 | atomic_read(&llc_sock_nr)); |
910 | } else { | 910 | } else { |
911 | atomic_dec(&llc_sock_nr); | 911 | atomic_dec(&llc_sock_nr); |
912 | printk(KERN_DEBUG "LLC socket %p released in %s, %d are still alive\n", sk, | 912 | printk(KERN_DEBUG "LLC socket %p released in %s, %d are still alive\n", sk, |
913 | __FUNCTION__, atomic_read(&llc_sock_nr)); | 913 | __func__, atomic_read(&llc_sock_nr)); |
914 | } | 914 | } |
915 | #endif | 915 | #endif |
916 | sock_put(sk); | 916 | sock_put(sk); |