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>
This commit is contained in:
committed by
David S. Miller
parent
f74d505b58
commit
025adbe8e5
@@ -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);
|
||||
|
Reference in New Issue
Block a user