diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-05-05 04:20:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-05 04:20:04 -0400 |
commit | 025adbe8e58290798001b472aec3eb618d8fc930 (patch) | |
tree | b9d49cd2f7be5b9e214d6e36306bceb077081256 /net/tipc/core.c | |
parent | f74d505b58d36ceeef10e459094f0eb760681165 (diff) |
tipc: Simplify log buffer resizing
This patch simplifies & standardizes the way TIPC's print buffer
log is resized. Code to terminate use of the log buffer is
eliminated by simply setting the log buffer size to 0 bytes.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/core.c')
-rw-r--r-- | net/tipc/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/core.c b/net/tipc/core.c index 740aac5cdfb6..862d41541615 100644 --- a/net/tipc/core.c +++ b/net/tipc/core.c | |||
@@ -182,7 +182,7 @@ static int __init tipc_init(void) | |||
182 | { | 182 | { |
183 | int res; | 183 | int res; |
184 | 184 | ||
185 | tipc_log_reinit(CONFIG_TIPC_LOG); | 185 | tipc_log_resize(CONFIG_TIPC_LOG); |
186 | info("Activated (version " TIPC_MOD_VER | 186 | info("Activated (version " TIPC_MOD_VER |
187 | " compiled " __DATE__ " " __TIME__ ")\n"); | 187 | " compiled " __DATE__ " " __TIME__ ")\n"); |
188 | 188 | ||
@@ -209,7 +209,7 @@ static void __exit tipc_exit(void) | |||
209 | tipc_core_stop_net(); | 209 | tipc_core_stop_net(); |
210 | tipc_core_stop(); | 210 | tipc_core_stop(); |
211 | info("Deactivated\n"); | 211 | info("Deactivated\n"); |
212 | tipc_log_stop(); | 212 | tipc_log_resize(0); |
213 | } | 213 | } |
214 | 214 | ||
215 | module_init(tipc_init); | 215 | module_init(tipc_init); |