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>
此提交包含在:
Allan Stephens
2008-05-05 01:20:04 -07:00
提交者 David S. Miller
父節點 f74d505b58
當前提交 025adbe8e5
共有 4 個檔案被更改,包括 18 行新增30 行删除

查看文件

@@ -182,7 +182,7 @@ static int __init tipc_init(void)
{
int res;
tipc_log_reinit(CONFIG_TIPC_LOG);
tipc_log_resize(CONFIG_TIPC_LOG);
info("Activated (version " TIPC_MOD_VER
" compiled " __DATE__ " " __TIME__ ")\n");
@@ -209,7 +209,7 @@ static void __exit tipc_exit(void)
tipc_core_stop_net();
tipc_core_stop();
info("Deactivated\n");
tipc_log_stop();
tipc_log_resize(0);
}
module_init(tipc_init);