diff options
author | Joe Perches <joe@perches.com> | 2012-05-17 06:25:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-17 18:45:20 -0400 |
commit | a508da6cc0093171833efb8376b00473f24221b9 (patch) | |
tree | d2578008abfaf33a59da65a64b916c62ee79eedd /include/net/lapb.h | |
parent | a5e371f61ad33c07b28e7c9b60c78d71fdd34e2a (diff) |
lapb: Neaten debugging
Enable dynamic debugging and remove a bunch of #ifdef/#endifs.
Add a lapb_dbg(level, fmt, ...) macro and replace the
printk(KERN_DEBUG uses.
Add pr_fmt and remove embedded prefixes.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/lapb.h')
-rw-r--r-- | include/net/lapb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/lapb.h b/include/net/lapb.h index fd2bf572ee1d..df892a94f2c6 100644 --- a/include/net/lapb.h +++ b/include/net/lapb.h | |||
@@ -149,4 +149,10 @@ extern int lapb_t1timer_running(struct lapb_cb *lapb); | |||
149 | */ | 149 | */ |
150 | #define LAPB_DEBUG 0 | 150 | #define LAPB_DEBUG 0 |
151 | 151 | ||
152 | #define lapb_dbg(level, fmt, ...) \ | ||
153 | do { \ | ||
154 | if (level < LAPB_DEBUG) \ | ||
155 | pr_debug(fmt, ##__VA_ARGS__); \ | ||
156 | } while (0) | ||
157 | |||
152 | #endif | 158 | #endif |