[PATCH] print the number of bytes processed in ckpt_error()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <serue@xxxxxxxxxx>
---
 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

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

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux