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

serue at us.ibm.com serue at us.ibm.com
Tue Nov 17 17:53:28 PST 2009


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:
-- 
1.6.1

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list