summaryrefslogtreecommitdiff
path: root/include/net/lapb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/lapb.h')
-rw-r--r--include/net/lapb.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/net/lapb.h b/include/net/lapb.h
index 96cb5ddaa9f1..df892a94f2c6 100644
--- a/include/net/lapb.h
+++ b/include/net/lapb.h
@@ -95,7 +95,7 @@ struct lapb_cb {
struct sk_buff_head write_queue;
struct sk_buff_head ack_queue;
unsigned char window;
- struct lapb_register_struct callbacks;
+ const struct lapb_register_struct *callbacks;
/* FRMR control information */
struct lapb_frame frmr_data;
@@ -149,4 +149,10 @@ extern int lapb_t1timer_running(struct lapb_cb *lapb);
*/
#define LAPB_DEBUG 0
+#define lapb_dbg(level, fmt, ...) \
+do { \
+ if (level < LAPB_DEBUG) \
+ pr_debug(fmt, ##__VA_ARGS__); \
+} while (0)
+
#endif