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/irlan/irlan_event.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/irlan/irlan_event.c')
-rw-r--r-- | net/irda/irlan/irlan_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/irda/irlan/irlan_event.c b/net/irda/irlan/irlan_event.c index 43f16040a6fe..9a1cc11c16f6 100644 --- a/net/irda/irlan/irlan_event.c +++ b/net/irda/irlan/irlan_event.c | |||
@@ -40,7 +40,7 @@ const char * const irlan_state[] = { | |||
40 | 40 | ||
41 | void irlan_next_client_state(struct irlan_cb *self, IRLAN_STATE state) | 41 | void irlan_next_client_state(struct irlan_cb *self, IRLAN_STATE state) |
42 | { | 42 | { |
43 | IRDA_DEBUG(2, "%s(), %s\n", __func__ , irlan_state[state]); | 43 | pr_debug("%s(), %s\n", __func__ , irlan_state[state]); |
44 | 44 | ||
45 | IRDA_ASSERT(self != NULL, return;); | 45 | IRDA_ASSERT(self != NULL, return;); |
46 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 46 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -50,7 +50,7 @@ void irlan_next_client_state(struct irlan_cb *self, IRLAN_STATE state) | |||
50 | 50 | ||
51 | void irlan_next_provider_state(struct irlan_cb *self, IRLAN_STATE state) | 51 | void irlan_next_provider_state(struct irlan_cb *self, IRLAN_STATE state) |
52 | { | 52 | { |
53 | IRDA_DEBUG(2, "%s(), %s\n", __func__ , irlan_state[state]); | 53 | pr_debug("%s(), %s\n", __func__ , irlan_state[state]); |
54 | 54 | ||
55 | IRDA_ASSERT(self != NULL, return;); | 55 | IRDA_ASSERT(self != NULL, return;); |
56 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 56 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |