aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/core.h
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2008-05-05 04:22:30 -0400
committerDavid S. Miller <davem@davemloft.net>2008-05-05 04:22:30 -0400
commitc89039850bdf8047472b4ee6132048dacef2cf5a (patch)
tree6541bb6adb8d899e2e9bb3f570cd0a1759df1a55 /net/tipc/core.h
parent40dbfae440abe6860167f12e0296bd7a1a599839 (diff)
tipc: Elimination of print buffer chaining
This patch revamps TIPC's print buffer subsystem to eliminate support for arbitrary chains of print buffers, which were rarely needed and difficult to use safely. In its place, print buffers can now be configured to echo their output to the system console. This provides an equivalent for the only chaining currently utilized by TIPC, in a faster and more compact manner. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/core.h')
-rw-r--r--net/tipc/core.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/tipc/core.h b/net/tipc/core.h
index 325404fd4eb5..7042ef377262 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -66,7 +66,6 @@
66 66
67struct tipc_msg; 67struct tipc_msg;
68extern struct print_buf *TIPC_NULL, *TIPC_CONS, *TIPC_LOG; 68extern struct print_buf *TIPC_NULL, *TIPC_CONS, *TIPC_LOG;
69extern struct print_buf *TIPC_TEE(struct print_buf *, struct print_buf *);
70void tipc_msg_print(struct print_buf*,struct tipc_msg *,const char*); 69void tipc_msg_print(struct print_buf*,struct tipc_msg *,const char*);
71void tipc_printf(struct print_buf *, const char *fmt, ...); 70void tipc_printf(struct print_buf *, const char *fmt, ...);
72void tipc_dump(struct print_buf*,const char *fmt, ...); 71void tipc_dump(struct print_buf*,const char *fmt, ...);
@@ -98,11 +97,13 @@ void tipc_dump(struct print_buf*,const char *fmt, ...);
98 * TIPC_CONS : system console 97 * TIPC_CONS : system console
99 * TIPC_LOG : TIPC log buffer 98 * TIPC_LOG : TIPC log buffer
100 * &buf : user-defined buffer (struct print_buf *) 99 * &buf : user-defined buffer (struct print_buf *)
101 * TIPC_TEE(&buf_a,&buf_b) : list of buffers (eg. TIPC_TEE(TIPC_CONS,TIPC_LOG)) 100 *
101 * Note: TIPC_LOG is configured to echo its output to the system console;
102 * user-defined buffers can be configured to do the same thing.
102 */ 103 */
103 104
104#ifndef TIPC_OUTPUT 105#ifndef TIPC_OUTPUT
105#define TIPC_OUTPUT TIPC_TEE(TIPC_CONS,TIPC_LOG) 106#define TIPC_OUTPUT TIPC_LOG
106#endif 107#endif
107 108
108#ifndef DBG_OUTPUT 109#ifndef DBG_OUTPUT