diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-05-05 01:24:06 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-05 01:24:06 -0700 |
commit | 48c971394626173eaf1c33441ea1d900c88b21a3 (patch) | |
tree | ff4e128177139f56e861dae01bb5ab77f1f7554d /net/tipc/dbg.c | |
parent | 6063da9d74d4da812ae0d8f233b7e320e15765e3 (diff) | |
download | linux-48c971394626173eaf1c33441ea1d900c88b21a3.tar.gz linux-48c971394626173eaf1c33441ea1d900c88b21a3.tar.bz2 linux-48c971394626173eaf1c33441ea1d900c88b21a3.zip |
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, ...) spin_unlock_bh(&print_lock); } +#ifdef CONFIG_TIPC_DEBUG + /** * print_to_console - write string of bytes to console in multiple chunks */ @@ -309,11 +311,11 @@ static void printbuf_dump(struct print_buf *pb) } /** - * tipc_dump - dump (non-console) print buffer to console + * tipc_dump_dbg - dump (non-console) print buffer to console * @pb: pointer to print buffer */ -void tipc_dump(struct print_buf *pb, const char *fmt, ...) +void tipc_dump_dbg(struct print_buf *pb, const char *fmt, ...) { int len; @@ -334,6 +336,8 @@ void tipc_dump(struct print_buf *pb, const char *fmt, ...) spin_unlock_bh(&print_lock); } +#endif + /** * tipc_log_resize - change the size of the TIPC log buffer * @log_size: print buffer size to use |