From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: [PATCH] print the number of bytes processed in ckpt_error() Date: Fri, 23 Oct 2009 12:05:29 -0500 Message-ID: <20091023170529.GA23079@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oren Laadan Cc: Linux Containers List-Id: containers.vger.kernel.org This should be useful at restart to indicate how much we have processed before running into an error. This only adds it to the user log for now, bc the syslog printing macro is expected to totally change anyway. Signed-off-by: Serge E. Hallyn --- checkpoint/sys.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/checkpoint/sys.c b/checkpoint/sys.c index 1840f90..a7fe1f8 100644 --- a/checkpoint/sys.c +++ b/checkpoint/sys.c @@ -361,7 +361,7 @@ void ckpt_log_error(struct ckpt_ctx *ctx, char *fmt, ...) return; file = ctx->logfile; - count = snprintf(buf, 200, "%d:%d ", mypid, tpid); + count = snprintf(buf, 200, "%d:%d@%d ", mypid, tpid, ctx->total); if (count > 200) return; /* not possible */ fs = get_fs(); -- 1.6.1