diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-05-05 01:22:30 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-05 01:22:30 -0700 |
commit | c89039850bdf8047472b4ee6132048dacef2cf5a (patch) | |
tree | 6541bb6adb8d899e2e9bb3f570cd0a1759df1a55 /net/tipc/core.h | |
parent | 40dbfae440abe6860167f12e0296bd7a1a599839 (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.h | 7 |
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 @@ struct tipc_msg; extern struct print_buf *TIPC_NULL, *TIPC_CONS, *TIPC_LOG; -extern struct print_buf *TIPC_TEE(struct print_buf *, struct print_buf *); void tipc_msg_print(struct print_buf*,struct tipc_msg *,const char*); void tipc_printf(struct print_buf *, const char *fmt, ...); void tipc_dump(struct print_buf*,const char *fmt, ...); @@ -98,11 +97,13 @@ void tipc_dump(struct print_buf*,const char *fmt, ...); * TIPC_CONS : system console * TIPC_LOG : TIPC log buffer * &buf : user-defined buffer (struct print_buf *) - * TIPC_TEE(&buf_a,&buf_b) : list of buffers (eg. TIPC_TEE(TIPC_CONS,TIPC_LOG)) + * + * Note: TIPC_LOG is configured to echo its output to the system console; + * user-defined buffers can be configured to do the same thing. */ #ifndef TIPC_OUTPUT -#define TIPC_OUTPUT TIPC_TEE(TIPC_CONS,TIPC_LOG) +#define TIPC_OUTPUT TIPC_LOG #endif #ifndef DBG_OUTPUT |