[CRIU] Re: [PATCH] log: Don't print time-stamp on LOG_MSG

Pavel Emelyanov xemul at parallels.com
Wed Oct 3 14:10:05 EDT 2012


On 10/03/2012 07:03 PM, Cyrill Gorcunov wrote:
> Otherwise "show" action become unreadable.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  log.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/log.c b/log.c
> index acbbb58..d3357a9 100644
> --- a/log.c
> +++ b/log.c
> @@ -189,7 +189,8 @@ void print_on_level(unsigned int loglevel, const char *format, ...)
>  		fd = current_logfd;
>  	}
>  
> -	print_ts();
> +	if (loglevel != LOG_MSG)
> +		print_ts();
>  
>  	va_start(params, format);
>  	size = vsnprintf(buffer + buf_off, PAGE_SIZE - buf_off, format, params);
> 

Applied


More information about the CRIU mailing list