[CRIU] Re: [PATCH] show: Set log-level to LOG_WARN

Pavel Emelyanov xemul at parallels.com
Mon Feb 27 02:36:18 EST 2012


On 02/25/2012 06:23 PM, Cyrill Gorcunov wrote:
> We use pr_info for "show" action so
> adjust log-level accordingly.

Show should dump info to STDOUT (not STDERR, as it is now :\ ) regardless
of the loglevel.

> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  crtools.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/crtools.c b/crtools.c
> index fd7c707..3128135 100644
> --- a/crtools.c
> +++ b/crtools.c
> @@ -399,6 +399,8 @@ int main(int argc, char *argv[])
>  		ret = cr_restore_tasks(pid, &opts);
>  		break;
>  	case 's':
> +		if (log_level < LOG_WARN)
> +			set_loglevel(LOG_WARN);
>  		ret = cr_show(pid, &opts);
>  		break;
>  	default:



More information about the CRIU mailing list