summaryrefslogtreecommitdiff
path: root/net/tipc/dbg.c
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2008-05-05 12:24:06 +0400
committerDavid S. Miller <davem@davemloft.net>2008-05-05 12:24:06 +0400
commit48c971394626173eaf1c33441ea1d900c88b21a3 (patch)
treeff4e128177139f56e861dae01bb5ab77f1f7554d /net/tipc/dbg.c
parent6063da9d74d4da812ae0d8f233b7e320e15765e3 (diff)
downloadlinux-48c971394626173eaf1c33441ea1d900c88b21a3.tar.xz
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.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, ...)
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