[Devel] Re: [PATCH 1/6] add image offset to ckpt_err output

Oren Laadan orenl at cs.columbia.edu
Wed Nov 25 10:49:16 PST 2009


Cool. Entire patchset queued for v19-rc2.

Thanks,

Oren.


serue at us.ibm.com wrote:
> From: Serge E. Hallyn <serue at us.ibm.com>
> 
> Changelog:
> 	Nov 17: check for len overrun
> 
> Signed-off-by: Serge E. Hallyn <serue at us.ibm.com>
> ---
>  checkpoint/sys.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/checkpoint/sys.c b/checkpoint/sys.c
> index c1c4e99..d64f5a7 100644
> --- a/checkpoint/sys.c
> +++ b/checkpoint/sys.c
> @@ -471,6 +471,8 @@ static void _ckpt_msg_appendv(struct ckpt_ctx *ctx, int err, char *fmt,
>  			goto full;
>  	}
>  
> +	len += snprintf(&ctx->msg[len], CKPT_MSG_LEN-len, "[offset %lld]",
> +			ctx->total);
>  	len += vsnprintf(&ctx->msg[len], CKPT_MSG_LEN-len, fmt, ap);
>  	if (len > CKPT_MSG_LEN) {
>  full:
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list