Re: [PATCH 1/2] LOG: add libqb as a "subsys"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/06/2012 02:30 PM, Angus Salkeld wrote:
> So we can see libqb internal logs
> 
> Signed-off-by: Angus Salkeld <asalkeld@xxxxxxxxxx>
> ---
>  exec/logsys.c |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/exec/logsys.c b/exec/logsys.c
> index 3da590e..0798bf7 100644
> --- a/exec/logsys.c
> +++ b/exec/logsys.c
> @@ -112,6 +112,7 @@ static pthread_mutex_t logsys_config_mutex = PTHREAD_MUTEX_INITIALIZER;
>  static int32_t _logsys_config_mode_set_unlocked(int32_t subsysid, uint32_t new_mode);
>  static void _logsys_config_apply_per_file(int32_t s, const char *filename);
>  static void _logsys_config_apply_per_subsys(int32_t s);
> +static void _logsys_subsys_filename_add (int32_t s, const char *filename);
>  
>  static char *format_buffer=NULL;
>  
> @@ -275,6 +276,15 @@ int _logsys_system_setup(
>  	    (strlen(mainsystem) >= LOGSYS_MAX_SUBSYS_NAMELEN)) {
>  		return -1;
>  	}
> +	/*
> +	 * Setup libqb as a subsys
> +	 */
> +	i = _logsys_subsys_create ("QB", "loop");
> +	_logsys_subsys_filename_add (i, "ipc");
> +	_logsys_subsys_filename_add (i, "log");
> +	_logsys_subsys_filename_add (i, "trie.c");
> +	_logsys_subsys_filename_add (i, "map.c");
> +	_logsys_subsys_filename_add (i, "ringbuffer");
>  
>  	i = LOGSYS_MAX_SUBSYS_COUNT;
>  

Reviewed-by: Steven Dake <sdake@xxxxxxxxxx>
_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux