diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-05-05 04:24:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-05 04:24:06 -0400 |
commit | 48c971394626173eaf1c33441ea1d900c88b21a3 (patch) | |
tree | ff4e128177139f56e861dae01bb5ab77f1f7554d /net/tipc/dbg.c | |
parent | 6063da9d74d4da812ae0d8f233b7e320e15765e3 (diff) |
tipc: Exclude debug-only print buffer code when not debugging
This patch modifies TIPC to only exclude debug-related print buffer
routines when debugging capabilities are not required. It also
fixes up some related #defines that exceed 80 characters.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/dbg.c')
-rw-r--r-- | net/tipc/dbg.c | 8 |
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 | ||
316 | void tipc_dump(struct print_buf *pb, const char *fmt, ...) | 318 | void 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 |