tipc: remove print_buf and deprecated log buffer code
The internal log buffer handling functions can now safely be removed since there is no code using it anymore. Requests to interact with the internal tipc log buffer over netlink (in config.c) will report 'obsolete command'. This represents the final removal of any references to a struct print_buf, and the removal of the struct itself. We also get rid of a TIPC specific Kconfig in the process. Finally, log.h is removed since it is not needed anymore. Signed-off-by: Erik Hugne <erik.hugne@ericsson.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
committed by
Paul Gortmaker
parent
dc1aed37d1
commit
869dd4662f
@@ -46,9 +46,6 @@
|
||||
#define CONFIG_TIPC_PORTS 8191
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_TIPC_LOG
|
||||
#define CONFIG_TIPC_LOG 0
|
||||
#endif
|
||||
|
||||
/* global variables used by multiple sub-systems within TIPC */
|
||||
int tipc_random;
|
||||
@@ -124,7 +121,6 @@ static void tipc_core_stop(void)
|
||||
tipc_nametbl_stop();
|
||||
tipc_ref_table_stop();
|
||||
tipc_socket_stop();
|
||||
tipc_log_resize(0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -160,9 +156,6 @@ static int __init tipc_init(void)
|
||||
{
|
||||
int res;
|
||||
|
||||
if (tipc_log_resize(CONFIG_TIPC_LOG) != 0)
|
||||
pr_warn("Unable to create log buffer\n");
|
||||
|
||||
pr_info("Activated (version " TIPC_MOD_VER ")\n");
|
||||
|
||||
tipc_own_addr = 0;
|
||||
|
||||
Reference in New Issue
Block a user