aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/dbg.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/dbg.c')
-rw-r--r--net/tipc/dbg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/tipc/dbg.c b/net/tipc/dbg.c
index cda496815a05..29ecae851668 100644
--- a/net/tipc/dbg.c
+++ b/net/tipc/dbg.c
@@ -263,6 +263,8 @@ void tipc_printf(struct print_buf *pb, const char *fmt, ...)
263 spin_unlock_bh(&print_lock); 263 spin_unlock_bh(&print_lock);
264} 264}
265 265
266#ifdef CONFIG_TIPC_DEBUG
267
266/** 268/**
267 * print_to_console - write string of bytes to console in multiple chunks 269 * print_to_console - write string of bytes to console in multiple chunks
268 */ 270 */
@@ -309,11 +311,11 @@ static void printbuf_dump(struct print_buf *pb)
309} 311}
310 312
311/** 313/**
312 * tipc_dump - dump (non-console) print buffer to console 314 * tipc_dump_dbg - dump (non-console) print buffer to console
313 * @pb: pointer to print buffer 315 * @pb: pointer to print buffer
314 */ 316 */
315 317
316void tipc_dump(struct print_buf *pb, const char *fmt, ...) 318void tipc_dump_dbg(struct print_buf *pb, const char *fmt, ...)
317{ 319{
318 int len; 320 int len;
319 321
@@ -334,6 +336,8 @@ void tipc_dump(struct print_buf *pb, const char *fmt, ...)
334 spin_unlock_bh(&print_lock); 336 spin_unlock_bh(&print_lock);
335} 337}
336 338
339#endif
340
337/** 341/**
338 * tipc_log_resize - change the size of the TIPC log buffer 342 * tipc_log_resize - change the size of the TIPC log buffer
339 * @log_size: print buffer size to use 343 * @log_size: print buffer size to use