diff options
Diffstat (limited to 'net/tipc/core.h')
-rw-r--r-- | net/tipc/core.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/net/tipc/core.h b/net/tipc/core.h index d7f3b3c96b97..0d783bcc6f9a 100644 --- a/net/tipc/core.h +++ b/net/tipc/core.h | |||
@@ -85,8 +85,6 @@ extern struct print_buf *const TIPC_CONS; | |||
85 | extern struct print_buf *const TIPC_LOG; | 85 | extern struct print_buf *const TIPC_LOG; |
86 | 86 | ||
87 | void tipc_printf(struct print_buf *, const char *fmt, ...); | 87 | void tipc_printf(struct print_buf *, const char *fmt, ...); |
88 | void tipc_msg_print(struct print_buf *, struct tipc_msg *, const char *); | ||
89 | void tipc_dump(struct print_buf *, const char *fmt, ...); | ||
90 | 88 | ||
91 | /* | 89 | /* |
92 | * TIPC_OUTPUT is the destination print buffer for system messages. | 90 | * TIPC_OUTPUT is the destination print buffer for system messages. |
@@ -144,20 +142,26 @@ void tipc_dump(struct print_buf *, const char *fmt, ...); | |||
144 | #define msg_dbg(msg, txt) \ | 142 | #define msg_dbg(msg, txt) \ |
145 | do { \ | 143 | do { \ |
146 | if (DBG_OUTPUT != TIPC_NULL) \ | 144 | if (DBG_OUTPUT != TIPC_NULL) \ |
147 | tipc_msg_print(DBG_OUTPUT, msg, txt); \ | 145 | tipc_msg_dbg(DBG_OUTPUT, msg, txt); \ |
148 | } while (0) | 146 | } while (0) |
149 | #define dump(fmt, arg...) \ | 147 | #define dump(fmt, arg...) \ |
150 | do { \ | 148 | do { \ |
151 | if (DBG_OUTPUT != TIPC_NULL) \ | 149 | if (DBG_OUTPUT != TIPC_NULL) \ |
152 | tipc_dump(DBG_OUTPUT, fmt, ##arg); \ | 150 | tipc_dump_dbg(DBG_OUTPUT, fmt, ##arg); \ |
153 | } while (0) | 151 | } while (0) |
154 | 152 | ||
153 | void tipc_msg_dbg(struct print_buf *, struct tipc_msg *, const char *); | ||
154 | void tipc_dump_dbg(struct print_buf *, const char *fmt, ...); | ||
155 | |||
155 | #else | 156 | #else |
156 | 157 | ||
157 | #define dbg(fmt, arg...) do {} while (0) | 158 | #define dbg(fmt, arg...) do {} while (0) |
158 | #define msg_dbg(msg, txt) do {} while (0) | 159 | #define msg_dbg(msg, txt) do {} while (0) |
159 | #define dump(fmt, arg...) do {} while (0) | 160 | #define dump(fmt, arg...) do {} while (0) |
160 | 161 | ||
162 | #define tipc_msg_dbg(...) do {} while (0) | ||
163 | #define tipc_dump_dbg(...) do {} while (0) | ||
164 | |||
161 | #endif | 165 | #endif |
162 | 166 | ||
163 | 167 | ||