diff options
author | Joe Perches <joe@perches.com> | 2014-11-11 17:44:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-12 13:56:41 -0500 |
commit | 955a9d202f470019f42979f0d1caec98843e39ce (patch) | |
tree | fff6124b339bc33e3b5c67668bfcc13098be865c /net/irda/ircomm/ircomm_ttp.c | |
parent | 8d326d818a2a8fc80c7df85dd88cb214804d1499 (diff) |
irda: Convert IRDA_DEBUG to pr_debug
Use the normal kernel debugging mechanism which also
enables dynamic_debug at the same time.
Other miscellanea:
o Remove sysctl for irda_debug
o Remove function tracing like uses (use ftrace instead)
o Coalesce formats
o Realign arguments
o Remove unnecessary OOM messages
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda/ircomm/ircomm_ttp.c')
-rw-r--r-- | net/irda/ircomm/ircomm_ttp.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/net/irda/ircomm/ircomm_ttp.c b/net/irda/ircomm/ircomm_ttp.c index abe9a5ab8d34..4b81e0934770 100644 --- a/net/irda/ircomm/ircomm_ttp.c +++ b/net/irda/ircomm/ircomm_ttp.c | |||
@@ -76,8 +76,6 @@ int ircomm_open_tsap(struct ircomm_cb *self) | |||
76 | { | 76 | { |
77 | notify_t notify; | 77 | notify_t notify; |
78 | 78 | ||
79 | IRDA_DEBUG(4, "%s()\n", __func__ ); | ||
80 | |||
81 | /* Register callbacks */ | 79 | /* Register callbacks */ |
82 | irda_notify_init(¬ify); | 80 | irda_notify_init(¬ify); |
83 | notify.data_indication = ircomm_ttp_data_indication; | 81 | notify.data_indication = ircomm_ttp_data_indication; |
@@ -91,7 +89,7 @@ int ircomm_open_tsap(struct ircomm_cb *self) | |||
91 | self->tsap = irttp_open_tsap(LSAP_ANY, DEFAULT_INITIAL_CREDIT, | 89 | self->tsap = irttp_open_tsap(LSAP_ANY, DEFAULT_INITIAL_CREDIT, |
92 | ¬ify); | 90 | ¬ify); |
93 | if (!self->tsap) { | 91 | if (!self->tsap) { |
94 | IRDA_DEBUG(0, "%sfailed to allocate tsap\n", __func__ ); | 92 | pr_debug("%sfailed to allocate tsap\n", __func__); |
95 | return -1; | 93 | return -1; |
96 | } | 94 | } |
97 | self->slsap_sel = self->tsap->stsap_sel; | 95 | self->slsap_sel = self->tsap->stsap_sel; |
@@ -119,8 +117,6 @@ static int ircomm_ttp_connect_request(struct ircomm_cb *self, | |||
119 | { | 117 | { |
120 | int ret = 0; | 118 | int ret = 0; |
121 | 119 | ||
122 | IRDA_DEBUG(4, "%s()\n", __func__ ); | ||
123 | |||
124 | /* Don't forget to refcount it - should be NULL anyway */ | 120 | /* Don't forget to refcount it - should be NULL anyway */ |
125 | if(userdata) | 121 | if(userdata) |
126 | skb_get(userdata); | 122 | skb_get(userdata); |
@@ -143,8 +139,6 @@ static int ircomm_ttp_connect_response(struct ircomm_cb *self, | |||
143 | { | 139 | { |
144 | int ret; | 140 | int ret; |
145 | 141 | ||
146 | IRDA_DEBUG(4, "%s()\n", __func__ ); | ||
147 | |||
148 | /* Don't forget to refcount it - should be NULL anyway */ | 142 | /* Don't forget to refcount it - should be NULL anyway */ |
149 | if(userdata) | 143 | if(userdata) |
150 | skb_get(userdata); | 144 | skb_get(userdata); |
@@ -171,7 +165,7 @@ static int ircomm_ttp_data_request(struct ircomm_cb *self, | |||
171 | 165 | ||
172 | IRDA_ASSERT(skb != NULL, return -1;); | 166 | IRDA_ASSERT(skb != NULL, return -1;); |
173 | 167 | ||
174 | IRDA_DEBUG(2, "%s(), clen=%d\n", __func__ , clen); | 168 | pr_debug("%s(), clen=%d\n", __func__ , clen); |
175 | 169 | ||
176 | /* | 170 | /* |
177 | * Insert clen field, currently we either send data only, or control | 171 | * Insert clen field, currently we either send data only, or control |
@@ -206,8 +200,6 @@ static int ircomm_ttp_data_indication(void *instance, void *sap, | |||
206 | { | 200 | { |
207 | struct ircomm_cb *self = (struct ircomm_cb *) instance; | 201 | struct ircomm_cb *self = (struct ircomm_cb *) instance; |
208 | 202 | ||
209 | IRDA_DEBUG(4, "%s()\n", __func__ ); | ||
210 | |||
211 | IRDA_ASSERT(self != NULL, return -1;); | 203 | IRDA_ASSERT(self != NULL, return -1;); |
212 | IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -1;); | 204 | IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -1;); |
213 | IRDA_ASSERT(skb != NULL, return -1;); | 205 | IRDA_ASSERT(skb != NULL, return -1;); |
@@ -229,8 +221,6 @@ static void ircomm_ttp_connect_confirm(void *instance, void *sap, | |||
229 | struct ircomm_cb *self = (struct ircomm_cb *) instance; | 221 | struct ircomm_cb *self = (struct ircomm_cb *) instance; |
230 | struct ircomm_info info; | 222 | struct ircomm_info info; |
231 | 223 | ||
232 | IRDA_DEBUG(4, "%s()\n", __func__ ); | ||
233 | |||
234 | IRDA_ASSERT(self != NULL, return;); | 224 | IRDA_ASSERT(self != NULL, return;); |
235 | IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); | 225 | IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); |
236 | IRDA_ASSERT(skb != NULL, return;); | 226 | IRDA_ASSERT(skb != NULL, return;); |
@@ -270,8 +260,6 @@ static void ircomm_ttp_connect_indication(void *instance, void *sap, | |||
270 | struct ircomm_cb *self = (struct ircomm_cb *)instance; | 260 | struct ircomm_cb *self = (struct ircomm_cb *)instance; |
271 | struct ircomm_info info; | 261 | struct ircomm_info info; |
272 | 262 | ||
273 | IRDA_DEBUG(4, "%s()\n", __func__ ); | ||
274 | |||
275 | IRDA_ASSERT(self != NULL, return;); | 263 | IRDA_ASSERT(self != NULL, return;); |
276 | IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); | 264 | IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); |
277 | IRDA_ASSERT(skb != NULL, return;); | 265 | IRDA_ASSERT(skb != NULL, return;); |
@@ -329,8 +317,6 @@ static void ircomm_ttp_disconnect_indication(void *instance, void *sap, | |||
329 | struct ircomm_cb *self = (struct ircomm_cb *) instance; | 317 | struct ircomm_cb *self = (struct ircomm_cb *) instance; |
330 | struct ircomm_info info; | 318 | struct ircomm_info info; |
331 | 319 | ||
332 | IRDA_DEBUG(2, "%s()\n", __func__ ); | ||
333 | |||
334 | IRDA_ASSERT(self != NULL, return;); | 320 | IRDA_ASSERT(self != NULL, return;); |
335 | IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); | 321 | IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); |
336 | 322 | ||
@@ -354,8 +340,6 @@ static void ircomm_ttp_flow_indication(void *instance, void *sap, | |||
354 | { | 340 | { |
355 | struct ircomm_cb *self = (struct ircomm_cb *) instance; | 341 | struct ircomm_cb *self = (struct ircomm_cb *) instance; |
356 | 342 | ||
357 | IRDA_DEBUG(4, "%s()\n", __func__ ); | ||
358 | |||
359 | IRDA_ASSERT(self != NULL, return;); | 343 | IRDA_ASSERT(self != NULL, return;); |
360 | IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); | 344 | IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); |
361 | 345 | ||